Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Polymorphism Question

  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    30
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Polymorphism Question

    I have this question on my study guide, and I'm not even sure how to begin to answer it.

    " When sorting a collection of objects that implements the Comparable type, the sorting method compares and rearranges the objects. Explain the role of polymorphism in this situation. "


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Polymorphism Question

    General CS Concepts: Polymorphism
    Polymorphism (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)

Similar Threads

  1. My polymorphism code won't work
    By Floomer99 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 20th, 2012, 05:31 AM
  2. Polymorphism.
    By TP-Oreilly in forum Java Theory & Questions
    Replies: 2
    Last Post: March 11th, 2012, 09:28 AM
  3. Polymorphism Question
    By kutysam in forum Java Theory & Questions
    Replies: 11
    Last Post: August 30th, 2011, 11:59 AM
  4. Polymorphism test
    By speedycerv in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 29th, 2011, 07:15 AM
  5. Polymorphism issue
    By LDM91 in forum Java Theory & Questions
    Replies: 5
    Last Post: November 28th, 2010, 03:26 PM