Inheritance Problem

Joined
Oct 27, 2007
Messages
1
Reaction score
0
Hello,
I'm going crazy over this. I'm working on an inheritance problem thats using an arraylist. I'm not sure why everytime I compile I receive a compile message. Please help! It's probably something simple I'm missing.

This is the item I'm referencing from the Animal class
public boolean isShipping(int month,int day, int year)


public static void printAnimalShipping(ArrayList<Animal> lst, int month, int day, int year)
{
for(int i=0; i<lst.size(); i++)
{
Animal a = lst.get(i); //Get Objects;
if(a.isShipping().equals(month))
{
System.out.println(a);}
}

COMPILE ERROR:
isShipping(int,int,int) in Animal cannot be applied to ()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top