Constructor is used for Initializing the values to the data members of the Class.
Constructor is that whose name is same as name of class.
Constructor gets Automatically called when an object of class is created.
Constructors never have a Return Type even void.
Constructor are of Default , Parameterized and Copy Constructors.
Copy Constructor:- This is also Another type of Constructor. In this Constructor we pass the object of class into the Another Object of Same Class. As name Suggests you Copy, means Copy the values of one Object into the another Object of Class .
In object-oriented programming, a friend function, that is a "friend" of a given class, is a function that is given the same access as methods to private and protected data. A friend function is declared by the class that is granting access