C++ Language INTERVIEW QUESTION & ANSWERS
16. |
What is a function? |
|
A function is a subprogram that acts on data and returns a value. A function can be invoked from the other parts of the program. |
17. |
What are the types of function? |
|
Functions are of two types are : - Built in functions
- User defined functions
|
18. |
What are class members? |
|
A class has members which consist of data members, the constructor, function, destructor functions and member functions. |
19. |
What are the advantages of OOPs? |
|
Object Oriented Programming has the following advantages over conventional approaches : - OOP provides a clear modular structure for programs which makes it good for defining abstract data types where implementation details are hidden and the unit has a clearly defined interface.
- OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
- OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.
|
20. |
What are the application of OOP? |
|
- Real time system
- Object oriented databases
- Neural network and parallel processing
|