Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //Creating an abstract class//
  2.  
  3. public abstract class Restaurant
  4. {
  5. /*Creating method that Prints Restaurant
  6. Name when called*/
  7. public void Name()
  8. {
  9. }
  10. //Abstract Methods//
  11. /* 1)Total Price
  12. * 2)Menue items
  13. * 3)location
  14. */
  15. public abstract void totalPrice();
  16. public abstract void menueItems();
  17. public abstract void nameLocation();
  18.  
  19. }
  20. //Class Closed//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement