2078 6

Object Oriented Programming20785 marksTypes of constructors

Describe types of constructors with an example.

Describe types of constructors with an example. [5]

A constructor is a special member function that has the same name as the class, has no return type, and is automatically called when an object is created. --- A constructor that takes no parameters. It is called automatically when an object is created without any arguments. --- A constructor that...

Up nextExplain use of objects as function arguments with example