Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

inheitance & polymorphism

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is inheritance is possible without inheritance & vice versa??
do help
 
Sheriff
Posts: 6630
1254
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

mayank pratap wrote:is inheritance is possible without inheritance


If and only if the occurrence of event A is possible without the occurrence of the same event A.
 
mayank pratap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Devaka Cooray wrote:

mayank pratap wrote:is inheritance is possible without inheritance


If and only if the occurrence of event A is possible without the occurrence of the same event A.


i was not expecting this
 
Devaka Cooray
Sheriff
Posts: 6630
1254
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

mayank pratap wrote:is inheritance is possible without inheritance


Did you really mean this?
 
Devaka Cooray
Sheriff
Posts: 6630
1254
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you meant "is inheritance is possible without polymorphism & vice versa??" - both ways are possible. The term of "polymorphism" refers some other ways such as overloading, ...
And if there are only one sub class for a particular super class, then there will not be any polymorphic application.
 
mayank pratap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ty
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic