Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface WheelFittingExpert {
- String getDescription();
- }
- class CarExpert implements WheelFittingExpert {
- public String getDescription() {
- return "I can only fit car wheels";
- }
- }
- class BikeExpert implements WheelFittingExpert {
- public String getDescription()
- {
- return "I can only fit bike wheels";
- }
- }
Add Comment
Please, Sign In to add comment