C++ Language INTERVIEW QUESTION & ANSWERS
6. |
What are the elements of OBJECT ORIENTED PROGRAMMING? |
|
The main concepts of object oriented programming are : - Data Abstraction
- Encapsulation
- Inheritance
- Polymorphism
|
7. |
What are the components of a class? |
|
A class consists of two components data members and methods. |
8. |
What are methods? |
|
Methods are functions associated with the class. They are able to access even private data members. |
9. |
What is the significance of class keyword in C++/Java? |
|
The keyword class (in C++ and Java) specifies an Abstract
Data Type (ADT). ADTs expose operations that provide a higher level functionality, and the lower level implementation details are isolated and hidden from the users of the class. |
10. |
What is the difference between source and escape sequences? |
|
The source text is created with the help of source characters.
These are interpreted at execution time. The values of these characters are implementation defined.
|