Technical Interview

Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer

Question:

What is the advantage of OOP?








Answer: Major advantages of OOP are:

• simplicity: software objects model real world objects, so the complexity is reduced and the program structure is very clear;

• modularity: each object forms a separate entity whose internal workings are decoupled from
other parts of the system;

• modifiability: it is easy to make minor changes in the data representation or the procedures in an OO program.  Changes inside a class do not affect any other part of a program, since the only public interface that the external world has to a class is through the use of methods;

• extensibility: adding new features or responding to changing operating environments can be solved by introducing a few new objects and modifying some existing ones;

• maintainability: objects can be maintained separately, making locating and fixing problems
easier;

• re-usability: objects can be reused in different programs.