Page 23 - DCAP404 _Object Oriented Programming
P. 23
Object-oriented Programming
Notes Depending upon the features they support, they are classified as object based programming
languages and object-oriented programming languages.
Object Oriented approach offers the most logical description of the real world. The
framework of OOP encompasses all the phases of system development.
The reusability features of OOP has facilitated the rapid growth of software.
1.9 Keywords
Classes: A class represents a set of related objects.
Data Abstraction: Abstraction refers to the act of representing essential-features without including
the background details or explanations.
Data Encapsulation: The wrapping up to data and functions into a single unit (class) is known
as encapsulation.
Design: The term design describes both a final software system and a process by which it is
developed.
Dynamic Binding: Binding refers to the linking of a procedure call to the code to be executed in
response to the call.
Inheritance: Inheritance is the process by which objects of one class acquire the properties of
objects of another class.
Message Passing: Message passing is another feature of object-oriented programming.
Object-oriented Programming Paradigm: The term object-oriented programming (OOP) is widely
used, but experts do not seem to agree on its exact definition.
Objects: Objects are the basic run-time entities in an object-oriented system.
Polymorphism: Polymorphism means the ability to take more than one form.
1.10 Review Questions
1. Outline the essential steps involved in carrying out a procedure-oriented programming
study.
2. Inheritance is the process by which objects of one class acquire the properties of objects of
another class. Analyze.
3. Examine what are the benefits of OOP?
4. How are classes different from objects? Illustrate with suitable examples.
5. What supports are necessary for a programming language to classify it as an object-
oriented programming language?
6. “Software engineers have developed a number of different ‘life styles’ through which
software passes”. Do you agree with your statement? Why or why not?
7. The technology provides greater programmer productivity, better quality of software
and lesser maintenance cost. Explain how?
8. Scrutinize the meaning of dynamic binding with an example.
9. Make distinctions between data abstraction and data encapsulation. Give examples
16 LOVELY PROFESSIONAL UNIVERSITY