Computer Science > STUDY GUIDE > CS 1064Appointment.java-Virginia Tech (All)
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 a... ctions 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]
Last updated: 1 year ago
Preview 1 out of 3 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
We Accept:
Connected school, study & course
About the document
Uploaded On
Apr 02, 2021
Number of pages
3
Written in
This document has been written for:
Uploaded
Apr 02, 2021
Downloads
0
Views
45
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·