download Mastguru Android App

Question Detail

Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private
Similar Questions :

1. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

2. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

3. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

4. What is purpose of abstract class ?

  • to provide help with database connectivity.
  • to provide data input to other classes.
  • to provide security to other classes.
  • to provide an appropriate base class from which other classes can inherit.

5. 37. Which of the following statements is false ?

  • Using typedef does not replace the standard C++ data type name with the new name
  • The new name defined by typedef, can be used as a type for another typedef
  • typedef defines new data types
  • None of the above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment