inheritance in c++ Identify the type of inheritance in the given Figure 3 and implement the same. All the classes have member variables in private, public and protected. Class shape inherits class Geometry publicly, class Triangle inherits class shape in protected and class square inherits class Shape Privately. Write main function that creates an object of class Triangle and Square and invokes methods of all the classes. Analyze the implications of various deriwatianc.