← Exit to Module 7: Advanced Object-Oriented Concepts lessons
Module progress · 0%Lesson · 30 min
Module 7: Advanced Object-Oriented Concepts
Lesson focusMini-Project: Shape Hierarchy
Build an extensible shape system that calculates area/perimeter and renders SVG output.
01 · 25 minDesigning Robust Inheritance HierarchiesLocked02 · 20 minMethod Overriding Rules & ContractsLocked03 · 15 minDeep Dive: The super KeywordLocked04 · 22 minAbstract Classes vs InterfacesLocked05 · 18 minMultiple Inheritance Through InterfacesLocked06 · 14 minDefault & Static Interface MethodsLocked07 · 12 minMarker Interfaces & Metadata AlternativesLocked08 · 20 minAdvanced Polymorphism PatternsLocked09 · 16 minCasting, instanceof, and Pattern MatchingLocked10 · 15 minComposition vs InheritanceLocked11 · 30 minMini-Project: Shape HierarchyLocked
Define an abstract Shape with abstract area() and perimeter() plus a render() default method.
Implement concrete shapes (Circle, Rectangle, Triangle) and experiment with sealed interfaces to constrain valid shapes.
Add a ShapeRenderer strategy (SVG, ASCII) to demonstrate polymorphism and composition working together.