Preview

Basic Concepts of Object-Oriented Programming

Satisfactory Essays
Open Document
Open Document
462 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Basic Concepts of Object-Oriented Programming
Basic Concepts of Object-Oriented Programming
1. Classes 2. Objects 3. Data abstraction 4. Data encapsulation 5. Inheritance 6. Polymorphism 7. Dynamic Binding 8. Message Passing

Student
DATA Name DOB Marks …. FUNCTIONS Total Average Display ….

Classes The entire set of data and code can be made as a user-defined type with the help of a class. Once a class has been defined, we can create any number of objects belonging to that class. A class gives a structure of what an object of its type will have. For example, consider, to represent students’ mark details, we can form the class as: Objects Objects are basic run-time entities which represent a person, a place or any item that the program must handle. Programming problem is analyzed in terms of objects and the nature of communication in between them. In other terms, objects are the runtime entities of a class. For example, the object for Student class can be created as follows: Student st1; st1 is the runtime entity of Student and it will have the data members Name, DOB and marks and the functions Total, Average and Display can be used by st1 to calculate

the mark details present in st1. Data Abstraction & Encapsulation The wrapping up of data and functions into a single unit is called as encapsulation. The data is not accessible to the outside world and those functions which are wrapped in the class can access it. Abstraction refers to the act of representing essential features without including the explanations. Since the classes use the concept of data abstraction, they are known as Abstract Data Types. Inheritance Person Attributes: Name Age Gender Student Attributes: Marks Course Staff
DATA Department Designation

Inheritance is the process by which objects of one class acquire the properties of another class. For example, a student as well as a staff is a Person. Both have some common properties. Inheritance allows the programmer to reuse defined properties. Polymorphism Polymorphism means the

You May Also Find These Documents Helpful

  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    Although the details can be quite complex, these details are the basic principles of object-oriented programming.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 7 Week 7

    • 594 Words
    • 3 Pages

    The information that was posted gave in your assignment said that you have learned skills the following program data session programming structure named as…

    • 594 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    Encapsulation is the idea that all data and methods are self-contained, as in a black box. The black box concept is an example of encapsulation, which means that all data and methods are self-contained. A black box does not want or need outside interference. Encapsulation allows objects to be used as modular components anywhere in the system, because objects send and receive messages but do not alter the internal methods of other objects.…

    • 515 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Entities are defined as a person, place, thing, or event in which data is collected and stored. Each entity is a unique and distinct object that may be a physical or abstract object within the real world (Coronel, Morris, & Rob, pg. 34). Entities of a database for a college that needs to keep track of students and courses would be students, professors, courses, classes, room, and enrollment status. These entities will be used to format the data within the database so that each student and course is accounted for. Attributes are characteristics of an entity, such as a name, phone number, or address (Coronel, Morris, & Rob, pg. 34). Attributes for the college database would include student first and last name, student phone number, student address, student identification number, student grade point average, student course major, and student classes to describe the student entity. The professor entity would be described by professor…

    • 906 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    The main objective of this course/subject is to provide students with knowledge and applications of Object-Oriented Programming through the use of the Java programming language.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The individual operations used in a computer program are often grouped into logical units called _____________.…

    • 4265 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    Object Oriented Processes

    • 400 Words
    • 2 Pages

    Therefore the car will start. Then when the car is started, the driver sends another message by shifting the gear so that when the driver places the foot on the accelerator, it therefore, sends another message to the engine how the idle will be. How much RPM’s will run so that the car will begin to accelerate given the selection of gear the driver has placed it in. These are messages sent back and forth.…

    • 400 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Object Relation Theory

    • 3303 Words
    • 14 Pages

    Since we are talking about object relations theory, this is a good time to ask what an object…

    • 3303 Words
    • 14 Pages
    Powerful Essays
  • Powerful Essays

    Any class (i.e., group, category) the members of which share one or more defining features.…

    • 1324 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Programming fundamentals

    • 299 Words
    • 2 Pages

    Note. This assignment is cumulative and the information and results will be used in the following weeks.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    C Sharp

    • 6277 Words
    • 26 Pages

    If you have been around the programming world for a while, you may have some experience…

    • 6277 Words
    • 26 Pages
    Good Essays
  • Powerful Essays

    Java Inheritance

    • 4859 Words
    • 20 Pages

    Other classes can inherit this basic set and also add their own unique methods and fields. Such classes are called subclasses, or derived classes.…

    • 4859 Words
    • 20 Pages
    Powerful Essays