Write an abstract class called dinosaur create 2 classes


Write an abstract class called Dinosaur. Create 2 classes that extend Dinosaur. The Dinosaur class should include: boolean instance variables isCarnivor and isExtinct; abstract methods for walk() and roar(). Create a driver class that shows you testing your child classes calling their versions of the walk() and roar() methods.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write an abstract class called dinosaur create 2 classes
Reference No:- TGS02644073

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)