Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Event here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Event
- {
- // instance variables - replace the example below with your own
- private String mDescription;
- private int mAffectMood;
- /**
- * Constructor for objects of class Event
- */
- public Event(String desc, int affectValue)
- {
- mDescription = desc;
- mAffectMood = affectValue;
- }
- public String getDescription()
- {
- return mDescription;
- }
- public int getAffectMood()
- {
- return mAffectMood;
- }
- public String toString()
- {
- return mDescription + " Ditt humör påverkas med värdet: " + mAffectMood;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement