Question: Create a Java NetBeans project. Read the instructions below carefully and make sure follow the steps from the instructions. Do not skip any steps. NEED
Create a Java NetBeans project named RestaurantClient with the main class named RestaurantClient, Add two service classes to the project, a superclass named Store and a subclass named Restaurant which will encapsulate a restaurant and inherit from class Store. Data encapsulated in class Store will be the restaurant name and a constant tax rate, Data encapsulated in class Restaurant will be the number of people served yearly and the average price per person. Code the appropriate constructor, mutator, accessor, toString and equals methods for both service classes. Code a method in the Restaurant class to return the average taxes per year. In the client application class you will instantiate Restaurant class objects and write statements (method calls) to test the methods in your student service classes. Download and follow the instructions in the attached file above to complete Programming Exercise 4. After successfully compiling and executing your exercise upload the zipped project folder to Programming Exercise 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
