ace

Thecount2

ace
May 12th, 2010
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1.  
  2. /**
  3. * Write a description of class Superflu here.
  4. *
  5. * @author (your name)
  6. * @version (a version number or a date)
  7. */
  8. public class Superfluous
  9. {
  10. // instance variables - replace the example below with your own
  11.  
  12.  
  13. /**
  14. * Constructor for objects of class Superflu
  15. */
  16. public Superfluous()
  17. {
  18.  
  19. }
  20.  
  21. /**
  22. * An example of a method - replace this comment with your own
  23. *
  24. * @param y a sample parameter for a method
  25. * @return the sum of x and y
  26. */
  27. public boolean isItSuperfluous(Person person)
  28. {
  29. // put your code here
  30. if (person.getIsAManager() == person.getIsAPolitician())
  31. {
  32. System.out.println("is a manager" + person.getIsAManager() + "is a politican"
  33. + person.getIsAPolitician());
  34. return true;
  35. }
  36.  
  37. if (person.getIsASecretary() != person.getIsMad())
  38. {
  39. return false;
  40. }
  41.  
  42.  
  43. if (person.getIsARabbit() == person.getIsWonderous())
  44. {
  45. return true;
  46. }
  47. else
  48. {
  49. return false;
  50. }
  51.  
  52. }
  53.  
  54.  
  55. }
Add Comment
Please, Sign In to add comment