Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Creating an abstract class//
- public abstract class Restaurant
- {
- /*Creating method that Prints Restaurant
- Name when called*/
- public void Name()
- {
- }
- //Abstract Methods//
- /* 1)Total Price
- * 2)Menue items
- * 3)location
- */
- public abstract void totalPrice();
- public abstract void menueItems();
- public abstract void nameLocation();
- }
- //Class Closed//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement