C++ Interview Question and Answers
6. |
What is encapsulation? |
|
The mechanism by which the data and fucntions are bound together within an object definition is called as encapsulation. |
|
|
7. |
What is the significance of an object? |
|
An object is a group of related functions and data servers those fucntions. It is a kind of self sufficient 'sub program' with a specific functional area. |
`
|
|
8. |
How is ploymorphism different from inheritance? |
|
Polymorphism promotes, reduces software complexity, as multiple definitions are permitted to an operator or function. Inheritance allows a class to be derived from an existing class thus promoting reusability of code. |
|
|
9. |
Expand's OOP's langauge? |
|
Object Oriented Programming Language. |
|
|
10. |
What are pointer variables? |
|
Pointer variables can store the address of other variables but the addresses stored in pointer variable should be of the same data type a pointer variable is pointint to. |
|
|