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:
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
Guide To Java A Concise Introduction To Programming
ISBN: 978-3031228414
2nd Edition
Authors: James T. Streib, Takako Soma
Question Posted: