Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.19 seconds.

  1. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    Again- what happened when you tried it? Did you write a simple program to test what happens in different scenarios? With more than one subclass?

    We aren't a compiler- the compiler is a compiler.
  2. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    It seems like you could correct yourself even more easily (and definitely more reliably) if you simply created a basic program that tested your theories. Then you can report your findings to us!
  3. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    That must mean you're looking at some basic tutorials, which is fine- but I wouldn't bother focusing on the finer points of OOP if you're still on the basic tutorials. It'll come to you in time....
  4. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    What type of example are you looking for, exactly?
  5. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    First google hit: Polymorphism (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
  6. Replies
    11
    Views
    1,776

    Re: Polymorphism Question

    I'm not really sure what your question is- that's just how it works, according to the JLS. What did you expect to happen?
Results 1 to 6 of 6