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

explain polymorphism using struts

 
S Sravs
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was the interview question
does any body have some explanation about it?

Thanks in Advance
Sravanthi
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fun answer, if you are from Sweden, would be:

A Struts,ostrich in english, Struthio in latin, is a bird that has only two species, Struthio camelus (the Australian ostrich) and Struthio molybdophanes, or the Somalian ostrich.

Both the Australian and the Somalian ostriches are of the type Struthio that is abstract. They are also Birds and of the base class Animal.

The real answer need some more thinking.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I were asked this question in an interview, I'd get up and just walk out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic