Question Detail

What is abstract class

  • Whose objects cant be created
  • Whose objects can be created
  • Depends on class
  • None of above
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. All members of class have which access to its members

  • private
  • public
  • protected
  • depends

3. How to define a destructor

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

4. Which is not a correct variable type

  • float
  • int
  • double
  • real

5. 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
Read more from - C++ Programming Questions Answers - Chapter 1