Q1
ClassName objectName
Answer: dynamically allocate an object using new ClassName* objectPointer = new
ClassName();
Q2
Call the method using the object objectName.methodName(arguments);
Answer: if you created an object dynamically using new (on the heap), you will have a
pointer to the object. objectPointer->methodName(arguments);
Q3
Create an instance of the Derived class Derived obj1;
Answer: Call a method inherited from the Base class obj.baseMethod();
Q4
Call a method defined in the Derived class obj.derivedMethod();
Answer: Call a method defined in the Derived class obj.derivedMethod();