How to use base class & child class as parameter in one function ?

Adam D. Ruppe destructionator at gmail.com
Fri May 22 20:06:20 UTC 2020


On Friday, 22 May 2020 at 20:04:24 UTC, Vinod K Chandran wrote:
> sampleList.Add(New Child(10.5)) Is this possible in D without 
> casting ?

Direct translation of this code works just fine in D.


More information about the Digitalmars-d-learn mailing list