Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IS-A RElationship  RSS feed

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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

IS-A relationships always rely on polymorphism.

can anyone justify the above statement ?


 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Prasad Kharkar
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can you say that there is no polymorphism?
when there is inheritance, there is always polymorphism
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANk you all
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!