C++ Interview Question and Answers

61. What are the benefits of object oriented programming(OOP)?
 
  • Software reusability
  • Code sharing
  • Rapid prototyping
  • Information hiding
.
 
Your Name Your Email-ID
Your Answer
62. What is the form of assignment statement?
  Variable = expression ( or constant )
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer