All the implicit member functions of a class are listed as follows:
a. Default constructor — Defines a constructor with no parameters.
b. Copy constructors — Initializes the value from an existing object of a class to a new, instantiated object of that same class.
c. Assignment operator— Returns a value.
d. Default destructor— Runs automatically when an object is being destroyed.
e. Address operator — Takes one operand and returns the memory address of a variable or function.
No comments:
Post a Comment