Results 1 to 2 of 2
  1. #1
    litojs is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default a little help needed..

    im doing this assignment n i have problem understanding the grading criteria.
    1)provide constructor for each classes with uses of polymorphism concept.
    2)apply method overriding concepts.
    3)interactive menu driven program.

    my problems are
    1)i did some searching n reading. but i still dont really get how polymorphism is suppose to be like. can someone give me an explanation?maybe a code snippet?
    2)overriding concept does it mean like having 2 same named displayInfo method in both parent n child class? and need to use both of them?
    3)interactive menu is it something like have a showInputDialog asking 1 for this 2 for that 3 for exitting?

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Rep Power


    1. Polymorphism has no set definition, but I think the main things are method overloading and inheritance.

    2. Not exactly. Overriding is when the two method signatures, not just names, are the same. That means they have the same return type and same parameter types in the same order.

    3. That's up to you.

Similar Threads

  1. Help needed in Java
    By javanewbie in forum New To Java
    Replies: 2
    Last Post: 07-08-2008, 07:55 PM
  2. help needed!!! :S
    By mark-mlt in forum Networking
    Replies: 1
    Last Post: 04-14-2008, 09:27 AM
  3. Help needed.
    By necro-1000 in forum AWT / Swing
    Replies: 2
    Last Post: 01-12-2008, 11:37 AM
  4. Help Needed
    By pks in forum New To Java
    Replies: 1
    Last Post: 01-09-2008, 12:07 AM
  5. help needed.
    By dirtycash in forum New To Java
    Replies: 3
    Last Post: 12-03-2007, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts