Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Superflu here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Superfluous
- {
- // instance variables - replace the example below with your own
- /**
- * Constructor for objects of class Superflu
- */
- public Superfluous()
- {
- }
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
- public boolean isItSuperfluous(Person person)
- {
- // put your code here
- if (person.getIsAManager() == person.getIsAPolitician())
- {
- System.out.println("is a manager" + person.getIsAManager() + "is a politican"
- + person.getIsAPolitician());
- return true;
- }
- if (person.getIsASecretary() != person.getIsMad())
- {
- return false;
- }
- if (person.getIsARabbit() == person.getIsWonderous())
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment