/**
* Write a description of interface abstr here.
*
* @author (your name)
* @version (a version number or a date)
*/
public interface reproduction
{
public void mate();
public void kill();
}
--
/**
* Write a description of class bird here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class bird implements reproduction
{
public void mate(){
System.out.println("Bird mates with older bird and creates large family, he scouts for his friend rabbitjr");
}
public void kill(){
System.out.println("Bird kills worm and uses it to feed his family");
}
}
--
/**
* Write a description of class runner here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class runner
{
// instance variables - replace the example below with your own
public static void main(String args[]) {
gecko g = new gecko();
platypus p = new platypus();
rabbit r = new rabbit();
rabbitjr rr = new rabbitjr();
bird b = new bird();
g.mate();
g.kill();
p.mate();
p.kill();
r.mate();
r.kill();
rr.mate();
rr.kill();
b.mate();
b.kill();
}
}
--
/**
* Write a description of class rabbit here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class rabbit implements reproduction
{
public void mate(){
System.out.println("The rabbit sees a gecko that he's fallen in love with but she rejects him for a better gecko");
}
public void kill(){
System.out.println("The rabbit is killed by the yellow geckos husband after a home invasion, many years later his son takes revenge");
}
}
--
public class gecko implements reproduction {
public void mate(){
System.out.println("Gecko mates with blue Gecko");
}
public void kill(){
System.out.println("Gecko kills offspring");
}
}
--
/**
* Write a description of class rabbitjr here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class rabbitjr implements reproduction
{
// instance variables - replace the example below with your own
public void mate(){
System.out.println("rabbit jr finds another fellow rabbit after growing up an orphan");
}
public void kill(){
System.out.println("rabbit jr takes vengeance on the geckos that ended his father, he finds them by having his friend bird scout the Vatican");
}
}
--
/**
* Write a description of class platypus here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class platypus implements reproduction
{
public void mate(){
System.out.println("platypus mates with younger yellow platypus after a heartbreaking divorce");
}
public void kill(){
System.out.println("platypus kills rabbit invading homeland");
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.