• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

K&B LearnKey Exam

 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
  • is-a relationships always rely on inheritance
  • is-a relationships always require at least two class types
  • is-a relationships always rely on polymorphism


  • I do not understand point 2 and 3. Please explain
     
    Greenhorn
    Posts: 9
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Is-A requires two class types - this can be explained on the basis of 1st point Inheritance means class A extends B means Class A IS-A B
    Also interfaces are like abstract classes interface A implements B ie it requires atleast two class types two show the IS-A relationship


    Use of Inheritance means code reuse or use polymorphism thats why IS-A relys on polymorphism

    would really appreciate some more people comment on this


    Amey Chitre
     
    Sheriff
    Posts: 9707
    43
    Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Well Is-A relationship doesn't require two classes always. When you extend an interface from another or implement an interface in a class, then there is none and 1 class involved respectively...
     
    Vyas Sanzgiri
    Ranch Hand
    Posts: 686
    Netbeans IDE Chrome Ubuntu
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Which proves that there are mistakes in the K&B exam. I found at least 3-4 mistakes per exam. Please be careful while reviewing.

    Another disaster is in the MusicPlayer class the jar given in the question is mp.jar but the answers have cp.jar as the correct answer!!
    reply
      Bookmark Topic Watch Topic
    • New Topic