C++ Interview Question and Answers
61. |
What are the benefits of object oriented programming(OOP)? |
|
- Software reusability
- Code sharing
- Rapid prototyping
- Information hiding
. |
|
|
62. |
What is the form of assignment statement? |
|
Variable = expression ( or constant ) |
|
|
63. |
What is the main purpose of overloading operators? |
|
The main purpose of operator overloading is to minimize the chances of occurrence of errors in a class that is using the overloaded operators. |
|
|
64. |
What is this pointer? |
|
When a member function is invoked, the invoking objects pointer is passed implicitly as an argument. This pointer is called this pointer. |
|
|
65. |
What is scope resolution operator? |
|
The Scope resolution operator(::) can be used to define the member functions of a program outside the boundary of a class and not within the class specifier. |
|
|