Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /**
  2. * Restaurant is the place where people pay to sit and eat served dishes.
  3. *
  4. * @author Subiksha Shrestha
  5. * @version 2020
  6. */
  7. public abstract class Restaurant
  8. {
  9. String name;
  10. public Restaurant(String name){
  11. this.name=name;
  12. }
  13. public void printName(){
  14. System.out.println("The name is:" + name);
  15. }
  16. abstract void otalPrice();
  17. abstract String menuItems();
  18. abstract String location();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement