Mention the advantages of Function overloading
- Overload method give programmes the flexibility.
- It speed up the execution of program.
Mention the advantages of Constructors
- It initialize an object.
- We can use a constructor to perform class related logic at the time of instantiation.
Mention the advantages of Destructors
- Destructors is called when lifetime of a program end.
- It is useful to make a final set of instructions.
Advantages of Copy constructor
- It is used to create a new object by duplicating the state of an existing object.
- It is used to pass an object as arguments to a function.
Advantages of Operator Overriding
- Its use for run-time polymorphism.
- It helps in writing generic code based on parent class.