Create a Java program that uses Interfaces to calculates the carbon foot print of various objects, much
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a Java program that uses Interfaces to calculates the carbon foot print of various objects, much of the design is left up to the programmer however good object-oriented design is required. Interfaces allow to specify similar behavior for seemingly unrelated classes. Use Interfaces in this project to link a buildings, automobile and food.
Requirements
- Create three class Building, Auto and Food.
- Provide each class with instance variables that relate to them but not to the other classes.
- Provide each class with accessor and mutator methods as well as at least one additional method that is unique to that class and is not one of the instance variable accessor or mutator method.
Related Book For
Posted Date: