Skip to content

Instantly share code, notes, and snippets.

@csabatini
Last active December 16, 2015 10:59
Show Gist options
  • Save csabatini/5424343 to your computer and use it in GitHub Desktop.
Save csabatini/5424343 to your computer and use it in GitHub Desktop.
Profitable.java
/** 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