Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class APStudent{
- //email .java file to kmclead@wssd.org
- //in the subject line, instantiate one of you, from the word new
- private int hoursOfSleep;
- private boolean isHonest;
- private int stressLevel;
- private String name;
- private boolean isConfused;
- public APStudent(int s, boolean h, int sL, String n, boolean c)
- {
- int hoursOfSleep = s;
- boolean isHonest = h;
- int stressLevel = sL;
- String name = n;
- boolean isConfused = c;
- }
- public String doHomework()
- {
- if(stressLevel < 5)
- return "All of homework is done and correct!";
- else if(stressLevel < 10)
- return "I hope McLead doesn't notice that I'm doing my Calc AB Homework.";
- else if (stressLevel < 15)
- return "I'm staying home for a mental health day.";
- else
- return "I don't even notice McLead's typos.";
- }
- public abstract String procrastination();
- public String toString()
- {
- return procrastination() + " " + doHomework();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement