Guest User

Untitled

a guest
Dec 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. interface Wheel {
  2. String getDescription();
  3. }
  4.  
  5. class CarWheel implements Wheel {
  6.  
  7. public String getDescription() {
  8. return "I am a car wheel";
  9. }
  10. }
  11.  
  12. class BikeWheel implements Wheel {
  13.  
  14. public String getDescription() {
  15. return "I am a bike wheel";
  16. }
  17. }
Add Comment
Please, Sign In to add comment