Create an interface classFigurewith two member variablesdim1, dim2.
Derive two subclassesRectangleandTrianglefromFigure.
Now create another class with main function create objects and display values.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here