download Mastguru Android App

Question Detail

A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class
Similar Questions :

1. Can we define array of classes in c++ ?

  • Yes
  • No

2. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember

3. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

4. When a structure refers to itself, it is known as ?

  • encapsulated structure
  • nested structure
  • recursive structure
  • self-referential structure

5. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )
Read more from - C++ Programming Questions Answers - Set 2
Post a comment