Java Bootcamp – Workbooks and Challenges
)}

Workbook 12.1

From the Java Bootcamp Resources, launch starter.

starter.png

Task 1

The Sphere and Cylinder classes share a common field.

classes.png

Refactor the code so that Cylinder and Sphere inherit radius from Shape.

Task 2

Refactor the code so that Cylinder and Sphere inherit getters and setters from Shape.


Associated Course: The Complete Java Development Bootcamp
Related Course: The Complete Spring Boot Development Bootcamp – Become a Java Web Developer

Feedback Summary
4.7
43 students
5

91%
4

2%
3

0%
2

0%
1

7%
Written Reviews
There are no written reviews yet.