Object-Oriented Programming: The Basic Elements Of Object Oriented Programming

Improved Essays
Object-oriented programming is a style of programming in which the programmer may determine a data structure’s data type, as well as any operations applied to the data structure (“Cornell.edu” n.d.). It is a programming paradigm that is built around the idea of data structures, also known as “objects.” Objects are the fundamental elements of object-oriented programming. They are made up of state and behavior. An object’s state is represented by “instance variables”, and behavior is represented by procedures, known as “methods” (“Cornell.edu” n.d.). Objects may also inherit state and behavior from other objects; the object-oriented paradigm enables classes to receive common characteristics from other “classes”, which are the blueprints from …show more content…
In both languages, commenting is identical. Two forward slashes, “//”, indicate a single-line comment, while “/*…*/” indicates a multi-line comment (“cplusplus.com” n.d.). Primitive data types, such as int, float, and char, are nearly indistinguishable, and arithmetic operators, such as addition (+), subtraction (-), multiplication (*), and division (/), are carried out in the same manner. Control constructs, such as if statements, for loops, while loops, and switch statements, are also shared among both languages(“cplusplus.com” n.d.). Both languages support classes, and single inheritance in C++ is comparable to Java (“Cornell.edu” n.d.). Both Java and C++ also allow for function …show more content…
C++ was developed several years before Java, which allowed for Java to be heavily influenced by it (“Saylor.org” n.d.). Though Java was influenced by C++, it has many notable features that distinguishes it from C++, including garbage collection, and the fact that Java is platform independent. Another major difference between the languages is that Java is a WORA language, while C++ is a WOCA language. Java and C++ also share several similarities in their syntax, as both languages were influenced by C (“Cornell.edu” n.d.). Given that both languages are object-oriented languages, they are guaranteed to have many similarities, however, the current differences between the two languages is exceedingly evident, and will be continuously increasing for years to

Related Documents

  • Great Essays

    SQL Vs NOSQL

    • 1124 Words
    • 5 Pages

    In short, a brief overview of not only NOSQL but also its opposing and conjoining systems, and their pro’s and con’s. To really understand these comparisons, you need to have an Idea of what JavaScript and JSON are in addition to the LAMP and MEAN stacks. The term LAMP referrers to (Linux, Apache, MySQL (SQL), PHP). The LAMP stack is a common stack of open source and free languages. This stack uses Linux as the operating system Apache as the server, MQSQL as the Database and PHP…

    • 1124 Words
    • 5 Pages
    Great Essays
  • Improved Essays

    In other terms, object-oriented programming can be known as the process of using several classes to represent different areas of functionality or data objects within a software application. These data objects have data fields and functions that act on the data fields. The hold three main characteristics which are encapsulation, inheritance, and polymorphism. Examples of objects would include windows, menus, text inputs, icons, etc. There must be procedures to manipulate…

    • 1055 Words
    • 5 Pages
    Improved Essays
  • Improved Essays

    PICT Case Study

    • 1546 Words
    • 7 Pages

    Test parameter and parameter value was insert into CTWeb in two ways, manually or upload the value file. CTWeb also support constraints and weight where the value can be defined by CTWeb user. Another additional features of CTWeb is its ability to set base test suite where a list of test case was used as base for PROW algorithm. Having all information needed, CTWeb execute PROW algorithm for the second times to reduce pairs obtained from the first execution. Then, the result will be sorted according to the weight of each pairs.…

    • 1546 Words
    • 7 Pages
    Improved Essays
  • Great Essays

    Diagrams: Represent the various artifacts of a system. UML is used to develop software systems based on any SDLC model. For example, UML is used to design a software which follows linear, prototyping, or iterative approach to system modeling. We can map each of the UML diagrams with the various phases of SDLC. The requirement analysis phase of SDLC involves identifying the end user’s expectations from a software system.…

    • 1873 Words
    • 8 Pages
    Great Essays
  • Superior Essays

    Opc Disadvantages

    • 1133 Words
    • 5 Pages

    The procedures in Visual Logic contain functions to carry out an action. Variables can be passed into the procedures but are normally set, where with polymorphism, a method acting appropriately according to is passed into its…

    • 1133 Words
    • 5 Pages
    Superior Essays
  • Great Essays

    Django Case Study

    • 1057 Words
    • 5 Pages

    Answer: Django architecture consists of: Models: It describes your database schema and your data structure Views: It controls what a user sees, the view retrieves data from appropriate models and execute any calculation made to the data and pass it to the template Templates: It determines how the user sees it. It describes how the data received from the views should be changed or formatted for display on the page Controller: It is the heart of the system. It handles request and responses, setting up database connections and loading add-ons and specifies Django framework and URL parsing. Question: Why Django should be used for web development? Answer: Django should be used for web development because of following reasons: • It allows to divide code module into logical groups to make it flexible to change.…

    • 1057 Words
    • 5 Pages
    Great Essays
  • Great Essays

    The deployment strategy, appropriate technology, quality attributes and crosscutting concerns contribute to architecture selection [13]. 2.1.3 Architectural Structures and Views Structures and views are used to discuss representation of software architectures, they are sometimes the same as a view is the representation of a structure. A view consists of how a set of elements are represented and the relationship between them, it represents a coherent set…

    • 5769 Words
    • 24 Pages
    Great Essays
  • Improved Essays

    System design involves the process of defining the system architecture, system components, modules and interfaces for satisfying the specified system requirements. It can be viewed as conversion of the theoretical system to actual product development. It actually involves the description of the system architecture, structure, behavior and its analysis. It involves the logical design of the proposed system that pertains to the abstract representation of the data flows, inputs and outputs of the system architecture. It involves the physical design that represents the actual inputs and outputs of the system architecture.…

    • 801 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Midori Case Study

    • 1833 Words
    • 7 Pages

    DESIGN METHODOLOGY This section contains Midori overall design methodology. Midori operating system design is based on some important modules like: • Microkernel architecture • Software Isolated Processes (SIPs) • Contract Based Channels • Metadata Infrastructure A. Kernel It is important part of the system. It acts as a bridge between programs and hardware of the system. Its Primary Purpose is to manage the computer’s resources along other programs to run use these resources. The kernel takes responsibilities for deciding at any time which of the running programs should be allocated to the processor and is responsible for deciding that which memory each process can use, determining what to do when not enough memory is available.…

    • 1833 Words
    • 7 Pages
    Improved Essays
  • Superior Essays

    Instruction set and functional unit set are characterizing for doing Instruction scheduling. Processors are designated for performing different sets of tasks. Genetic programming has been evolved from Genetic algorithm which is used in applications for machine learning. It uses algorithms and randomly generated remainders to find the expression fitness and compiles the program. Here the important step in GP is to identify required functions and useful terminals and find a way to combine them to get an effective strategically program.…

    • 814 Words
    • 4 Pages
    Superior Essays