Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Variable Polymorphism

 
Nupur Gupta
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I understand method polymorphism - it consists of overloading and overriding. What is member variable or instance polymorphism? Thanks in advance.
DG
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never heard of em. Where did you find those terms? Google seems to tell me that "variable polymorphism" is something geneticists talk about.
 
Nupur Gupta
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I tried that google search to. Well, I was asked in an interview. I suppose I should rephrase it as class member polymorphism...
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic