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 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
Get step-by-step solutions from verified subject matter experts
