Advertisement
sergAccount

Untitled

Aug 8th, 2020
1,257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.spec.model;
  7.  
  8. /**
  9.  *
  10.  * @author Administrator
  11.  */
  12. public class Customer {    
  13.     //
  14.     private String customerName;
  15.     private String num;
  16.  
  17.     public Customer(String customerName, String num) {
  18.         this.customerName = customerName;
  19.         this.num = num;
  20.     }
  21.     //
  22.     public String getCustomerName() {
  23.         return customerName;
  24.     }
  25.     public void setCustomerName(String customerName) {
  26.         this.customerName = customerName;
  27.     }
  28.  
  29.     public String getNum() {
  30.         return num;
  31.     }
  32.  
  33.     public void setNum(String num) {
  34.         this.num = num;
  35.     }
  36.     //
  37.     @Override
  38.     public String toString(){
  39.         return "customerName=" + customerName + "_num=" + num;
  40.     }
  41.     //
  42.     public String toJSON(){
  43.         return null;
  44.     }
  45.     //
  46.     public String toXML(){
  47.         return null;
  48.     }    
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement