• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Super Class and Sub Class

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When creating a subclass, which of the following are TRUE?
a) The selected superclass should be chosen because it has some
methods the subclass can reuse, even if others do not apply.
b) The class name should normally be a qualification of its
superclass' name.
c) The subclass should be of the same type as all of its
superclasses.
d) The superclass should be marked as abstract.
Multiple Select - Please select all of the correct answers (this
question has 2 correct choices).
b, c
-------------------------------------
Can anyone explain me statement (b)
 
Marshal
Posts: 17008
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"pp" (Puja)
Please edit your profile and make your publicly displayed name conform to the JavaRanch Naming Policy.
Thanks for your cooperation.
Junilu
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be able to guess the inheritance relationship just by looking at the names of the classes.
 
Puja Potdar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx
 
Junilu Lacar
Marshal
Posts: 17008
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Puja"
Your display name still does not conform to the JavaRanch Naming Policy. Please change your display name to "Puja Potdar" so that it is in compliance with the policy.
Thanks!
Junilu
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic