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

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

  1. Create three class Building, Auto and Food.
  2. Provide each class with instance variables that relate to them but not to the other classes.
  3. 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.

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple Java program that uses interfaces to calculate the carbon footprint of buildings automobiles and food Ive provided basic instance variables accessor mutator methods and additional un... View full answer

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 Operating System Questions!