Hellboyandso

Services.java

Dec 12th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package service;
  2.  
  3. import domain.Customer;
  4. import domain.Pizzeria;
  5.  
  6. public class Service {
  7.  
  8.     protected Customer customer;
  9.     protected Pizzeria pizzeria;
  10.     private int customerCounter = 0;
  11.    
  12.     public Service(){
  13.         pizzeria = new Pizzeria("MyFancyShop");
  14.     }
  15.    
  16.     protected void setCustomerCounter(int customerCounter){
  17.         this.customerCounter = customerCounter;
  18.     }
  19.    
  20.     protected int getCustomerCounter(){
  21.         return customerCounter;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment