im writting a program with an abstract class called shape. then i will write child classes of circle, square..and etc. .....im supposed to then write a main driver class that instantiate my child classes and exercise the behaviors i provide.........the behaviors are just area and circumference of each shape......im confused on the main driver class.....how do i use the driver class to instantiate my child classes and exercise their behaviors?
Write a class with a main() method with the proper signature. In that method, use the "new" operator to create instances of your classes. Store them into variables: some variables of type "Shape", and others of type "Square", "Triangle", etc. Then call their methods, and print the results.