Has the same name as the class must be a member function


A class constructor has the following properties:

  • Has the same name as the class
  • Must be a member function and is usually prototyped or defined in the public section
  • Does not return a value and has no return type (not even void)
  • Is often quite simple and can be inclined
  • Is called whenever an object of that class is declared

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Has the same name as the class must be a member function
Reference No:- TGS02584052

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)