
Thecount2
By:
ace on
May 12th, 2010 | syntax:
None | size: 1.15 KB | hits: 31 | expires: Never
/**
* 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() == true && person.getIsAPolitician() == true)
{
return true;
}
if (person.getIsASecretary() == true && person.getIsMad() == true)
{
return true;
}
if (person.getIsARabbit() == true && person.getIsWonderous() == true);
{
return true;
}
else
{
return false;
}
}
}