Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of Polymorphism feature in a project

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

This is a discussion about making usage of Polymorphism feature in a java project .

Polymorphism is the feature that allows one interface to be used for general class actions.


By these i know that , if there is a one interface and there can be many implementation classes for it and depending upon the Object type instaniation the particular behaviour will be invoked .

But can you please tell me where actually or any scenario these will be useful in a project .



Thanks for reading and please share your ideas .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC drivers.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always used only Thin Driver in my every project . Can you please elobrate the answer you shared .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you use when you connect to DB2? Or Sybase? Or MySQL?
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to write a DAO Layer ( I mean a interface and a number of implementation classes )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic