2078 6

BIT153 ยท 2078 ยท 5 marks

Describe types of constructors with an example.

Describe types of constructors with an example. [5]

Object Oriented ProgrammingChapter 3: Constructors and DestructorsTypes of constructors

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