Bryan Peach wrote:Please help. I have to create a class Dog and then implement a driver for that class. I have done both and am now trying to test both but when i go to compile the driver I get this message :cannot find symbol class Dog. I am not sure how to delcare another class, or how to import the class Dog or whatever it is i have to do. Please Help. here is the code...
Bryan Peach wrote:yeah i got that figured out and working now... but now at my date constructor it is saying that its an invalid method declaration.... but its not even a method declaration... do you see whats wrong with it? Constructors really boggle my mind
Bryan Peach wrote:I have to create this Dog class and then two Sub-classes called WorkingDog and PetDog... How do i link them? just by having them in the same package?
Bryan Peach wrote:
And the idea is if its a working dog i have to get certain information, but if its a pret dog i need different information... where would i make the distinction to branch off into either of the two subclasses and how do i make the distinction?
Bryan Peach wrote:
hahaha ok stupid me... i got the errors figured out. Now this is the last thing... I promise... in my driver is it saying that: cannot find symbol constructor Dog()... Whats that all about?
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|