Question: Extend the SuperHero class and implement necessary methods and constructor. For your new class that will extend SuperHero class give any name you like ublic
Extend the SuperHero class and implement necessary methods and constructor. For your new class that will extend SuperHero class give any name you like ublic abstract class SuperHero { 2 3 4 private String name; public abstract String superPower(); 7 8 9 public SuperHero(String name) { this.name = name; } public String getName() { return name; } 10 11 12 13 14 15 16 17 18 19 28 21 public void setName(String name) { this.name = name; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
