You are on page 1of 2

tor members (c) both a & b (d) None of these 17.

The fields in a class of a c++ program are by default (a) protected (b) public (c) private (d) None of these

5. (a)

(c) both a & b (d) None of these 15. A destructor takes (a)

(a) a object is declared (b) an object is used (c) a class is declared (d) a class is used 13. A ) construct the data objects (b) giving new meaning to existing c++ operators (c) making new c++ operator (d) both a& b above 12.A (a) one argum Whmaking c++ operators works with nguage has the capability to produce new data type Mascitti (b) Bjarne Stroustrup (c) Donald Knuth (d) Ken Thompson 7. constructor is called wheneveren a la Extensible (class having no name (a) is not allowed (b) can't have a constructor (c) can't have a destructor (d) can't be (c) three arguments (d) Ze passed as an argument 14. The differences between constructors and destructor are (a) constructors can take arguments but destructor can't (b) constructors can be overloaded but destructors can't be overloaded , it is called ent (b) two arguments ro argument

16. Constructors are used to (a) initialize the objects (b) Overloaded (c) Encapsulated (d) Reprehensible 6. C++ name was suggested by (a) Rrick

You might also like