CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
191
Extend a Dog from AnimalA base class Animal is provided with a name field and a speak() method that returns "...".
easyNot startedSolve
192
Override toString in StudentA Person class is provided with a name field.
easyNot startedSolve
195
Inherit and Call Super MethodA Vehicle class is provided with a method describe() that returns "I am a vehicle".
easyNot startedSolve
507
Use an Inherited Getter in a SubclassGuitar extends Instrument, so every guitar already has the public method getName() without writing it again.
easyNot startedSolve
508
Pass Two Values Up With superLaptop extends Device.
easyNot startedSolve
509
Add to the Parent's Price With super.getPrice()VipTicket extends Ticket and overrides getPrice().
easyNot startedSolve
510
Change a Protected Field From a SubclassProduct declares its stock field as protected, so code inside a subclass can read and change it directly, while unrelated classes cannot.
easyNot startedSolve
511
Let a Parent-Type Parameter Pick the Right OverrideParrot and Owl both extend Bird and override sound().
easyNot startedSolve
512
Count Subclass Objects With instanceofA Player[] array can hold plain Player objects and Goalie objects, because a Goalie is a Player.
easyNot startedSolve
513
Downcast to Reach a Subclass MethodpointsOf receives an Account, but only a PremiumAccount has getRewardPoints().
easyNot startedSolve
514
Build on the Parent's toStringCourse already has a toString() that returns text such as Course MATH101.
easyNot startedSolve
515
Total the Pay of a Mixed Staff ArrayIntern and Contractor both extend Worker and override weeklyPay().
easyNot startedSolve
516
Overload an Inherited Method in a SubclassOverloading means two methods share a name but take different parameters.
easyNot startedSolve
196
Employee Salary InheritanceCreate a Manager class that extends the provided Employee class.
mediumNot startedSolve
200
Multi-Level Inheritance ChainA base class Animal and a middle class Pet are provided.
mediumNot startedSolve
517mediumNot startedSolve
518
Override equals to Compare Two PointsEvery class inherits equals(Object other) from Object.
mediumNot startedSolve
519
Write Two Subclasses of a Game CharacterA GameCharacter class is provided.
mediumNot startedSolve
520mediumNot startedSolve
521mediumNot startedSolve
202
Abstract Shape Hierarchy with Rectangle and TriangleCreate an abstract class Shape with an abstract method double area() and a concrete method String label() that returns "Shape".
hardNot startedSolve
205hardNot startedSolve