Advertisement
Darkness4869

Appointment.java

Nov 10th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. // Appointment Class
  2. public class Appointment {
  3.     protected String name;
  4.     protected String time;
  5.     // Constructor Method
  6.     public Appointment(String appointmentName, String appointmentTime) {
  7.         name = appointmentName;
  8.         time = appointmentTime;
  9.     }
  10.     // Name accessor method
  11.     public String getName() {
  12.         return name;
  13.     }
  14.     // Time accessor method
  15.     public String getTime() {
  16.         return time;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement