download Mastguru Android App

Question Detail

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
Similar Questions :

1. Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited

2. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>

3. What is abstract class

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

4. ios::ate is used for

  • Set the initial position at the start of the file
  • Set the last position at the end of the file
  • Set the initial position at the end of the file
  • Set the last position at the start of the file

5. Meaning of PDB

  • Physical Database File
  • Program Database File
  • Program Direct File
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment