temirlan100

Untitled

Nov 14th, 2024
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. public class Doctor {
  2.     private String doctorId;
  3.     private String name;
  4.  
  5.     public Doctor() {
  6.     }
  7.  
  8.     public Doctor(String doctorId, String name) {
  9.         this.doctorId = doctorId;
  10.         this.name = name;
  11.     }
  12.  
  13.     // Геттеры и сеттеры
  14.     public String getDoctorId() {
  15.         return doctorId;
  16.     }
  17.  
  18.     public void setDoctorId(String doctorId) {
  19.         this.doctorId = doctorId;
  20.     }
  21.  
  22.     public String getName() {
  23.         return name;
  24.     }
  25.  
  26.     public void setName(String name) {
  27.         this.name = name;
  28.     }
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment