[SOLVED] Store and Restaurant OOP Scenario | Inheritence

[SOLVED] Store and Restaurant OOP Scenario | Inheritence

Project Description
Write a class encapsulating a Restaurant, which inherits from Store. The store has the following attributes: name, sales tax rate; A Restaurant has the following additional attributes: how many people are served every year, the average price per person? 

Code the constructor, accessors, mutators, toString and equals method of the super class Store and the subclass Restaurant; also in Restaurant - code a method returning the average taxes per year. Also, needs to include a client class to test your code for both the parent class and the subclass. Should test creating Store objects and Restaurant objects, your set methods and get methods, toString and equals methods.
Powered by