|
Answer» Guys i have an assignment that i don't know how to do it so help me PLEASE !!
notice that
1) i USE J creator LE 4.50 2) the code must be done in " clases and objects " 3)CLASSES should be public so it can be manipulated by a user
A) IMPLEMENT a class Message. Each message must have a user-name of a sender, a user-name of a receiver, a subject and a body. • Implement a class Message with the above attributes. • Augment your class with a constructor that takes four parameters and initializes the attributes accordingly. • A message without a sender or a receiver is an invalid message. Further, a message cannot have an empty subject and body (or there would not be much information in the message). Therefore, at least one of these two attributes must be a non-empty string. Implement a method isValid() that returns true only if – the Message object on which the method is invoked has a non-empty sender and receiver, and – at least one of the body or subject must be a non-empty string. • Implement a method toString() that returns a string representation of the Message object that the method was invoked on. For example, the return value of toString() may look as follows: From: kareem To: Solver Subject: CS Assignment Body: Thanks What have you done so far?nothing !! Talk to your tutor, we dont do homework.Quote from: kareem eltanahy on May 23, 2012, 03:35:06 PM nothing !!
I'm pretty sure the instructor is supposed to be grading YOUR work, not SOMEBODY else's work.
I personally have no problem helping people who at least try. You didn't even do that.How much will pay for it ?
|