Could you please tell me what's wrong with the following code? Im showing the source of 2 errors
Dustin Johnson
Greenhorn
Joined: Nov 14, 2006
Posts: 22
posted
0
For one, it looks like you're trying to create two instances of variable named "p" as Popcorn types, your second one isn't an anonymous class from my discernment. It is clearly type Popcorn, and I'm not quite sure what the code block there is for me, as you are not creating an anonymous class just creating a new Popcorn() object... [ March 08, 2007: Message edited by: Dustin Johnson ]
I got it! Well, while overriding a method, we've to maintain the signature and not pass the arguments. Arguments should be passed during the method call. Herez the updated code: