Learning Objectives On successful completion of this module you should be able to: explain the purpose of a class constructor and identify a default constructor for a class explain the purpose of a class destructor and identify a default destructor for a class Apply function overloading Apply operator overloading code and use simple C++ classes using the following facilities: public member functions and private data members one or more constructors, including where appropriate, a default constructor Overloading of functions Operator overloading Introduction The Class The class is a data type which specifies the data and the permissible operations on the instance of this class. The set of operations define the interface of the objects of the class. The class definition consists of zero or more data members, which together define the data part and zero or more member functions, which together define the interface. In addition, there are three level...
Happy Learning C++ Programming.