Procedure oriented programming object oriented

This preview shows 2 out of 4 pages.

Procedure Oriented Programming Object Oriented Programming • Emphasis is on algorithm. • Large programs are divided into smaller programs called functions. • Functions share global data. • Data move openly around the system from function to function. • Employs top-down approach in program design. • Emphasis is on data rather than procedure. • Programs are divided into objects. • Functions that operate on the data of an object are tied together. • Data is hidden and cannot be accessed by external functions. • Follows bottom-up approach. 4. Define Object Oriented Programming (OOP). Object Oriented Programming is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand. 5. List out the basic concepts of Object Oriented Programming. • Objects • Classes • Data Abstraction and Encapsulation • Inheritance • Polymorphism • Dynamic Binding • Message Passing 6. Define Objects.(Nov/Dec 2010) (Nov/Dec 2011) Objects are the basic run time entities in an object oriented system. They are instance of a class. They may represent a person, a place etc that a program has to handle. They may also represent user-defined data. They contain both data and code. 7. Define Class. .(Nov/Dec 2010)
Image of page 2

Subscribe to view the full document.

Class is a collection of objects of similar data types. Class is a user-defined data type. The entire set of data and code of an object can be made a user defined type through a class. 8. Define Encapsulation and Data Hiding. .(Nov/Dec 2010) The wrapping up of data and functions into a single unit is known as data encapsulation. Here the data is not accessible to the outside world. The insulation of data from direct access by the program is called data hiding or information hiding. 9. Define Data Abstraction.(April/May 2011) Abstraction refers to the act of representing the essential features without including the background details or explanations. 10. Define data members and member functions. The attributes in the objects are known as data members because they hold the information. The functions that operate on these data are known as methods or member functions. 11. State Inheritance. Inheritance is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification and provides the idea of reusability. The class which is inherited is known as the base or super class and class which is newly derived is known as the derived or sub class. 12. State Polymorphism. Polymorphism is an important concept of OOPs. Polymorphism means one name, multiple forms. It is the ability of a function or operator to take more than one form at different instances.
Image of page 3
Image of page 4
You've reached the end of this preview.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern