Question Detail

What is polymorphism

  • Ability to take more than one form
  • Ability to destroy destructor
  • Ability to create constructor
  • None of above
Similar Questions :

1. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

2. All members of class have which access to its members

  • private
  • public
  • protected
  • depends

3. Can we overload constructors in C++

  • Yes
  • No

4. Meaning of deed copy is

  • A deep copy creates a copy of the dynamically allocated objects too
  • A deep copy just copies the values of the data as they are
  • A deep copy creates a copy of the statically allocated objects too
  • Both A and C

5. Which type of variables can be referred from anywhere in the c++ code

  • All variables
  • Local variables
  • Universal variables
  • Global variables
Read more from - C++ Programming Questions Answers - Chapter 1