Question: Consider the following CircusPerformer class declaration. public class CircusPerformer { private String performerName; private String actName; public CircusPerformer(String pN, String aN) { performerName = pN;

Consider the following CircusPerformer class declaration. public class CircusPerformer { private String performerName; private String actName; public CircusPerformer(String pN, String aN) { performerName = pN; actName = aN; } public String getPerformer() { return performerName; } public String getAct() { return actname; } public void act() { entrance(); performance(); exit(); } public void entrance() { System.out.println("Starts in ring center"); } public void performance() { System.out.println("Runs in circles"); } public void exit() { System.out.println("Exits from ring center"); } } Consider the following code segment and incomplete Equestrian class. Equestrian sue = new Equestrian("Sue", "Amazing Ponies"); sue.act(); public class Equestrian extends CircusPerformer { } An Equestrian object is a CircusPerformer who rides ponies over obstacles. Which of the following methods must be defined in the Equestrian class? I. Equestrian constructor II. act III. entrance IV. performance V. exit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!