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

  • Improved Essays

    American Sign Language is a unique language with diverse syntax, semantics, pragmatics, and morphemes, which includes grammatical aspects which are not present in English including classifiers. Despite the limited research in specific areas of ASL, due to ASL not being officially recognized as a language until 1960, the importance of classifiers is indisputable. Classifiers are “designated handshapes and/or rule-grounded body pantomime used to represent nouns and verbs” by representing a class of things with a shared characteristic (Aron 1). They can express many different key pieces of information and are an extremely complex aspect of ASL grammar. Classifiers are essential to nearly all levels of storytelling, making both receptive and expressive…

    • 1214 Words
    • 5 Pages
    Improved Essays
  • Improved Essays

    Part 1 Different data types and their uses - The different data types that is available for creating or developing a program on software. An example of programming software would be Microsoft Visual Studio. With this software, many data types are used which can drive an event. -…

    • 841 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Nt1330 Unit 1 Study Guide

    • 573 Words
    • 3 Pages

    Structured Query Language (SQL) – A language that allows client workstations to communicate with servers and mainframe computers. 14. Open Database Connectivity (ODBC) – Industry standard protocol that makes it possible for software from different vendors to interact and exchange…

    • 573 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    Nt1330 Unit 2 Assignment

    • 505 Words
    • 3 Pages

    The assignment during the third week was to find the information that would entail the usage of the two definable word with, which came as an abstraction and encapsulation in reference to the design methods of object oriented programming. The example that would come to mind is the design of one or more of the software application used during the past few weeks within the online lecture class and the usage of hiding information by design. The design of any program can be the structure of the application and it does only what its attribute’s and behavior entail it to do, forgetting what other purposes the application has in mind for operation. The information that would best describe the usage comes as the control flow of the design on the programming that have been implemented so far in the published manual areas during the past week. This is encompassed by the design of the statement in the functionality of the program setting of the statements, functions and the way the program is executed for operations.…

    • 505 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Pt1420 Unit 6 Assignment

    • 798 Words
    • 4 Pages

    Megan Douglas Lesson Title: All Aboard! Date: March 5, 2015 Essential Question: Does a pattern exist when finding the different combinations of cars used to create different train lengths using Cuisinaire Rods? If so, what is it and how do you find it? Lesson Rational: In this lesson, the students will use Cuisinaire Rods to create different combinations while having different “car lengths” (individual rods) add up to “trains” (combinations) which are equal to the length of a larger car.…

    • 798 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Nt1310 Unit 6

    • 910 Words
    • 4 Pages

    The following diagrams show how the user would act and interact with the system and the various activities that user would perform: 2.3.1 NOTATIONS DATA FLOW…

    • 910 Words
    • 4 Pages
    Decent Essays
  • Improved Essays

    Pt1420 Unit 5 Lab 1

    • 382 Words
    • 2 Pages

    cs61002: Algorithms and Programing 1 rbattul1 Lab Assignment 5: Summary of chapters 2.1 to 2.6 of python scientific notes. Summary:…

    • 382 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    “Artemis, with Wildflowers” by Ani King, is the recreation of a myth, originated in Ancient Greece. Artemis was the goddess of hunting, the best archer amongst gods and men, protector of forests and virginity. She was also the twin sister of Apollo, the god of sun. Orion was a giant, who had explicit skills on archery and therefore on hunting, a fact that made him the only man Artemis would ever fell for. Artemis’ jealous twin Apollo, tricked his sister so she would end up killing Orion with a far-shot.…

    • 276 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    Fig 1.2 Classes of interrupts Program Generated by some condition that occurs as a results of an instruction execution, such as arithmetic overflow, division by zero, attempt to execute am illegal machine instruction, and reference outside a user's allowed memory space. Timer Generated by a timer within the processor. This allows the operating system to perform certain functions on a regular basis. I/…

    • 364 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Task 2 (M1) Relook at this criteria – Show examples Discuss the importance of quality of code. There are many reasons why code quality is important to have when you’re creating a program one of these reasons are to make it easier to read and appeal to a wide audience this can be done not only by separating coding and indenting it, but also by adding comments to your coding with descriptive text about what the certain piece is doing, as well as this giving specific names to certain tools used in the program will also make it easier for people to understand which would give the people who might take over your project an overview as well as clear instructions about what was done in the program and what hadn’t been done in the program all these things will improve the readability of programs to a wide range of people.…

    • 856 Words
    • 4 Pages
    Improved Essays
  • Superior Essays

    Principles of construction are passed down and improved upon as construction technologies advance. For example, mud and straw were considered suitable materials for building shelter, but now they are not. Frederick P. Brooks Jr lays out timeless principles of software engineering in The Mythical Man-Month. Brooks writes about common problems faced by software engineers and how the principles are applied. While elaborating on common problems encountered Brooks goes into specific details about systems that are antiquated due to advances in technology.…

    • 1561 Words
    • 7 Pages
    Superior Essays
  • Improved Essays

    Breaking the Barrier Between Classes Throughout time and our own lives we have witnessed the negative social consequences due to class inequality. Financial situations should not define a person and yet, being the critical humans we are, this usually ends up in contributing to our overall thoughts of others. If we allowed ourselves to disregard this and think of people based on their qualities and personality in spite of everything else, maybe we would create more positive relationships. In the book Ghost by Jason Reynolds, the author sheds light onto social classes by using the character’s experiences to connect and bond people together despite of their economic status and differences.…

    • 742 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Computer programmers are the engineers that develop these software programs. They are the core of what makes technology possible. Creation begins with software engineers submitting design specification to the programmers. After analyzing the information, they determine how to translate this request, using computer languages like C++, to achieve the desired end product. In addition, through thorough testing, debugging, and at times, rewriting of code, programmers accomplish…

    • 996 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Class Language

    • 271 Words
    • 2 Pages

    1. I think the result I found most surprising was the fill-in, “And he gave ___ written word ‘skunk’…” The correct answer was “the.” Even though 77 students gave the correct response, there were still several who used random words such as “garbage,” “things,” and “fishy.” These words do not even come close to fitting the sentence being that they are all form class words.…

    • 271 Words
    • 2 Pages
    Decent Essays
  • Superior Essays

    Organizational structure refers to the way of arranging people and assigning responsibilities to perform work and meet goals in an organization, it is particularly important for the large organization, where decisions need to be made in many tasks, unlike in the case of a small organization that day-to-day communication is frequent and formal structure is unnecessary (Distelzweig, n.d.). In order to explain the concept of a good organizational structure, two organizations are chosen for comparison and analysis, which are the Apple and Microsoft company. Firstly, for the Apple company, Apple Computer was created by Steve Jobs and his partner in 1976 as the personal computer manufacturer, it was once faced full of obstacles to sustain with…

    • 1445 Words
    • 6 Pages
    Superior Essays