Implemented Runtime Polymorphism
Created a General Parent class Shape have method calculateArea(), then create Circle, Rectangle and Triangle as children class of Shape and override the methods according to the needs
Created a General Parent class Shape have method calculateArea(), then create Circle, Rectangle and Triangle as children class of Shape and override the methods according to the needs