result covariance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    result covariance

    Hello!!

    When you have result covariance is it then necessary that you have
    inheritance.

    I mean can you have result covariance without having inheritance.

    //Tony


  • wlievens
    New Member
    • Oct 2005
    • 1

    #2
    The definition of covariance implies inheritance, as it necessarily involves an overridden method. What's your question?

    Comment

    Working...