Question Detail

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

1. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

2. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above

3. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static

4. Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited

5. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for
Read more from - C++ Programming Questions Answers - Set 2