download Mastguru Android App

Question Detail

Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array
Similar Questions :

1. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

2. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

3. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above

4. What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.

5. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Read more from - C++ Programming Questions Answers - Set 2
Post a comment