File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes IS-A RElationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "IS-A RElationship" Watch "IS-A RElationship" New topic

IS-A RElationship

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

here B IS-A A,but there is no polymorphism

IS-A relationships always rely on polymorphism.

can anyone justify the above statement ?

OCPJP 6.0 93%
OCPJWCD 5.0 98%
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

mohitkumar gupta wrote:
but there is no polymorphism

How can you tell this?
mohitkumar gupta wrote:
IS-A relationships always rely on polymorphism.

Yes, as the name suggests!

|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 438

how can you say that there is no polymorphism?
when there is inheritance, there is always polymorphism

SCJP 6 [86%] June 30th, 2010
OCPWCD [84%] March 26th, 2013
If you find any post useful, click the "plus one" sign on the right
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

THANk you all
I agree. Here's the link:
subject: IS-A RElationship
Similar Threads
Code Barn example Shape - I have a question..
MasterExam OO question
down cast only throw exception
inheritance and polymorphism across packages