The Triangle class is derived from the RegPolygon class. Using the UML diagrams shown below, complete the

Question:

The Triangle class is derived from the RegPolygon class. Using the UML diagrams shown below, complete the following:

image text in transcribed

A. List any overloaded methods in the RegPolygon and Triangle classes.
B. List any overriding methods in the RegPolygon and Triangle classes.
C. If the variable lenSide is a private data member of the RegPolygon class, is lenSide accessible from the Triangle class?
D. If the variable lenside is a protected data member of the RegPolygon class, is lenSide accessible from the Triangle class?
E. If the variable lenside is a protected data member of the RegPolygon class, is lenSide accessible from the main method?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: