Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

Re: Parameterized constructors and inheritance

$
0
0

Hi, Ted, thanks!

 

I tried this one, and that would be a workaround.

 

The problem is that if I have more than 2 objects in a row, it's imperative to do that in all descendent constructors, otherwise I wouldn't be able to run the application correctly.

 

I wonder how to deal with that in  a huge system with many classes that inherit from this object, what if one forgets to put code inside a constructor in this serie...


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>