Question: create a class Business with the following instance variables and methods. name, number of employees getName, getEmployees Create a subclass Theater that extends the

create a class Business with the following instance variables and methods. name,number of employees getName, getEmployees Create a subclass Theater that extends the

create a class Business with the following instance variables and methods. name, number of employees getName, getEmployees Create a subclass Theater that extends the Business class and has an instance variable numSeats, and a printInfo method that displays the name, number and number of seats. In the main method, create an instance of the subclasses and output the information. Business Program Test program: package BusPackage; class Business { public static void main(String[] args) { Theater the = new Theater ("Numarc", 23, 50); the.printInfo(); } }

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!