What is constructor and what are the properties of constructor? Write a program showing the example of Parameterized constructor.
Constructor is a special member function that is invoked automatically whenever an object of a class is created. It is used to initialize the data members of the class. The constructor has the same name as the class and does not have any return type, not even void. The properties of constructor are: It has the same name as the class. It is automatically called whenever an object of the class is created. It does not have any return type, not even void. It can be overloaded. It can have default arguments. Here is an example program showing the use of Parameterized constructor: #include <iostream> using namespace std; class Rectangle { private: float length; float breadth; public: Rectangle(float l, float b) { length = l; breadth = b; } float area() { ...