This file contains hidden or 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
| package PayableInterface; | |
| public class Employee implements Payable { | |
| private double payment; | |
| public Employee(double payment) | |
| { | |
| this.payment = payment; | |
| } |
This file contains hidden or 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
| package AbstractImplementation; | |
| /* | |
| * Author - Anson Foong | |
| * This is an abstract class | |
| */ | |
| public abstract class Employee { | |
| private String name; | |
| private int key; |
This file contains hidden or 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
| package Shapes; | |
| public class Circle extends Shape { | |
| private double radius; | |
| public Circle(double radius) | |
| { | |
| this.radius = radius; | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |
This file contains hidden or 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
| public class Toilet { | |
| private int flushCount = 1; | |
| private boolean clogged; | |
| public Toilet() | |
| { | |
| } |