Search:

Type: Posts; User: Farmer

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,366

    Re: Problem with subclass and superclass methods

    Junky,

    When I compile your code, I get the following output:
    Apple
    Cherry

    I get apple and cherry for these reasons starting at main():
    Foo f = new Foo();
    A new object of type Foo is...
  2. Replies
    5
    Views
    1,366

    Re: Problem with subclass and superclass methods

    Junky,

    Thanks for your response, I have been working through this book from the public library on Java. Right now I am working with overriding methods and inheritance. The code I included before...
  3. Replies
    5
    Views
    1,366

    Problem with subclass and superclass methods

    Hello,

    I am having trouble with the code posted below. The code has some pre-compile errors, which I will list here:

    //cannot find symbol
    //symbol: method...
Results 1 to 3 of 3