C++ Interview Question and Answers
1. |
What are the advantage of Object Oriented Programming? |
|
- Class data type allows programs to organize as objects that contain both data and functions.
- Ploymorphisn promotes, reduces software complexity, as multiple definitions are permitted to an operator or fucntion.
- Inheritance allows a class to be derived, from an existing class, thus promoting reusability of code.
- Data hiding or Abstraction of data types provides secuirty to data, as unrelated member functions cannot access its data.
|
|
|
2. |
What is an object? |
|
A group of data and operations are termed as object. The operations represent the behaviour of the object. |
|
|
3. |
What is inheritance? |
|
The process of acquiring Base class properties is called inheritance. |
|
|
4. |
What is polymorphism? |
|
The ability of an object to respond differntly to different messages is called polymorphism. |
|
|
5. |
What sort of software is used to solve any specific problem? |
|
The application software is used to solve any specific problem. |
|
|