What is constructor? How do we invoke a constructor function? Describe the importance of destructor.
Answer: – A constructor is a special member function whose main operation is to allocate the required resources such as memory and initialize the objects of its class. A constructor is distin…
Post to Tumblr