Question Detail

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

  • True
  • False
Similar Questions :

1. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it

2. 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.

3. A class having no public constructors is

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

4. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

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