In this situation, the functions that share the same name are said to be overloaded and the process is called function overloading . Function overloading can be used with or without inheritance being involved. 4.1 Single parameter overloading This refers to the situation where the number of the parameters of the overloaded functions are the same , but the types are different. If the call argument is of type int then the function version with an int parameter is called. This refers to the situation where the types of parameters of the overloaded functions may or may not be the same and the number of parameters of the overloaded functions are different.
Function overriding Unlike overloading, overriding is used in case of inheritance.
However, the derived class can also redefine the inherited member function. That's why in the definition for the threeD class, these functions do not have to be redefined. Inline implementation of constructor. Constructor of the base class is not inherited. There will be question on lab material in class tests.