Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Wheel {
- String getDescription();
- }
- class CarWheel implements Wheel {
- public String getDescription() {
- return "I am a car wheel";
- }
- }
- class BikeWheel implements Wheel {
- public String getDescription() {
- return "I am a bike wheel";
- }
- }
Add Comment
Please, Sign In to add comment