Can we inherit a constructor in C#?

You can’t inherit constructors but you can call them from your derived children’s constructors . If you make the base classes default constructor private it will force you to select a base constructor every time you create a derived class.21 Haz 2018

Sizin İçin Seçtik  Markalama ilk olarak hangi sektörde kullanılmıştır?

Leave a Reply

Your email address will not be published. Required fields are marked *