download Mastguru Android App

Question Detail

If no constructor is there, then compiler assumes the class to have a default constructor with no arguments

  • True
  • False
Similar Questions :

1. How to define a destructor

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

2. Constructor is

  • A class automatically called whenever a new object of this class is created
  • A class automatically called whenever a new object of this class is destroyed
  • A function automatically called whenever a new object of this class is created
  • A function automatically called whenever a new object of this class is destroyed

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

  • private
  • public
  • protected
  • depends

4. What is abstract class

  • Whose objects cant be created
  • Whose objects can be created
  • Depends on class
  • None of above

5. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment