Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Restaurant is the place where people pay to sit and eat served dishes.
- *
- * @author Subiksha Shrestha
- * @version 2020
- */
- public abstract class Restaurant
- {
- String name;
- public Restaurant(String name){
- this.name=name;
- }
- public void printName(){
- System.out.println("The name is:" + name);
- }
- abstract void otalPrice();
- abstract String menuItems();
- abstract String location();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement