import sofia.micro.*;
// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those
//
...
import sofia.micro.*;
// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those
// who do.
// -- Robert Creamer (rcreamer)
//-------------------------------------------------------------------------
/**
* Represents a weekly appointment at a specified time,
* including a description.
*
* @author Robert Creamer (rcreamer)
* @version (2020.11.06)
*/
public class Appointment extends Actor
{
//~ Fields ................................................................
/**
* gets the hour count for appointment
*/
private int hour;
/**
* describes what type of appointment
*/
private String description;
// Add a field representing the hour of this appointment
// Add a field representing the description of this appointment
//~ Constructor ...........................................................
// ----------------------------------------------------------
/**
* Creates a new Appointment object.
*
* @param h is to get numbers (0, 23)
* @param des is to describe appointment types
*
*
*/
public Appointment(int h, String des)
{
this.hour = h;
this.description = des;
}
//~ Methods ...............................................................
// ----------------------------------------------------------
/**
* Get the description of this appointment.
* @return This appointment's description.
*/
public String getDescription()
{
return this.description;
}
This study source was downloaded by 100000820454130 from CourseHero.com on 04-02-2021 13:14:57 GMT -05:00
https://www.coursehero.com/file/81133402/Appointmentjava/
This study resource was
shared via Course
[Show More]