Last active
December 16, 2015 10:59
-
-
Save csabatini/5424343 to your computer and use it in GitHub Desktop.
Profitable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** PROGRAM ASSIGNMENT 5 Profitable.java | |
* | |
* Program Description | |
* This is the Profitable interface, to be implemented in the Movie class | |
* and inherited by its subclasses. | |
* | |
*/ | |
package library.films; | |
public interface Profitable { | |
/* Retrieve movie category */ | |
public abstract String getCategory(); | |
/* Calculate the film's revenue */ | |
public abstract double calcRevenue(); | |
/* Calculate the film's profit */ | |
public abstract double calcProfit(); | |
} // end of interface |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment