Object oriented programming and interfaces

A Guy With a Question aguywithanquestion at gmail.com
Mon Dec 4 21:11:43 UTC 2017


On Monday, 4 December 2017 at 20:43:27 UTC, Dirk wrote:
> Hi!
>
>     float distance( Medoid other );

>     float distance( Item i ) {...}

>

The two signatures need to be the same. I think this is true of 
most OOP languages. Have them both be:

float distance( Medoid other );



More information about the Digitalmars-d-learn mailing list