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
  • 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

    Polymorphism is the concept that a message gives different meanings to different objects. For example GOOD NIGHT message might produce different results depending if it is received by a child or the family dog. When received by the parent object the message causes the parent object to read a bedtime story. When received by the dog object it causes the dog to go to sleep and when received by the child object it causes the child to get ready for bed.…

    • 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

    Fat Sick Movie Analysis

    • 279 Words
    • 2 Pages

    Fat,Sick and nearly dead affected me as a person because it makes me think about eating habits. I feel like Joe and Phill have a huge impact on people with obesity.They changed their ways in eating this effect me by showing me how eating healthy can and will convert you into a better person internally and externally. It’s important to be healthy because it gives you a better chance to live longer ,watching your family grow,helps financially throughout someone’s life.There would be no worries in life about health issues. If Joe and Phill can do it so can anyone else out there looking for a change.…

    • 279 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Throughout history, different time frames had issues, and Willy Loman endured much distress due to the war. Willy Loman was always short of cash, but there was always Charley, Willy’s next door neighbor to bail him out by assisting him. Although Willy may be the blame for some of his misfortunes, his wife certainly did not help him to matters better for him. There will always be someone to blame for one’s social and cultural environment.…

    • 671 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

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

    • 4265 Words
    • 23 Pages
    Satisfactory 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
  • 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
  • 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
  • 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