Page 17 - DCAP404 _Object Oriented Programming
P. 17
Object-oriented Programming
Notes program in relatively independent units that are easier to maintain and extend. You can also
share code among objects through inheritance.
Task An object is a software bundle of related state and behavior. Analyze.
Secondly, OOP has nothing to do with any programming language, although a programming
language that supports OOP makes it easier to implement the object-oriented techniques. As
you will see shortly, with some discipline, you can use objects even in C programs.
Self Assessment
Fill in the blanks:
5. Languages that support programming with objects are said to be …………………..
programming languages.
6. The colossal efforts that went into developing this large population of programs would be
rendered useless if these codes could not be………………..
7. The technique of ………………….. decomposition has been used to specify the tasks to be
completed in order to solve a problem.
8. ………………. is only a method of designing and implementing software.
1.4 Benefits of OOP
Object-orientation contributes to the solution of many problems associated with the development
and quality of software products. The technology provides greater programmer productivity,
better quality of software and lesser maintenance cost. The principle advantages are:
1. Through inheritance, we can eliminate redundant code and extend the use of existing
classes.
2. We can build programs from the standard working modules that communicate with one
another, rather than having to start writing the code from scratch. This leads to saving of
development time and higher productivity.
3. The principle of data hiding help the programmer to build secure programs that cannot be
invaded by code in other parts of the program.
4. It is possible to have multiple instances of an object to co-exist without any interference.
5. It is possible to map objects in the problem domain to those objects in the program.
6. It is easy partition the work in a project based on objects.
7. The data-centered design approach enables us to capture more details of a model in
implementable form.
8. Object oriented systems can be easily upgraded from small to large systems.
9. Message passing techniques for communication between objects makes the interface
descriptions with external systems much simpler.
10. Software complexity can be easily managed.
10 LOVELY PROFESSIONAL UNIVERSITY