Question: 3. Based on the class diagram below, state whether each declaration is valid or invalid. If it is invalid, state why. (14 pts) interface SceneShape
3. Based on the class diagram below, state whether each declaration is valid or invalid. If it is invalid, state why. (14 pts) interface SceneShape Selectable Shape abstract CarShape HouseShape a. SelectableShape selectable - new SelectableShape(0: b. SceneShape scene new SceneShape): c. SelectableShape selectable2 new CarShape d. CarShape car new CarShape); e. CarShape car2 new HouseShape): f. SceneShape scene2 new SelectableShape(); g. SceneShape scene3new HouseShape0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
