D
DreadLypa
Guest
Hi, everybody.
This operator is used so that it cannot be inherited from the class.
But in the example of Unity, they had the Application class "sealed", and then in the new versions they just made the class Application.
As I understand it, they did so that they could extend the Application class.
Question: do I need to use "sealed" at all and in what cases? If the class extension can be useful later at any time. For example, I now have a SteamManager class (for working with the SteamAPI), should I do it "sealed" ?
There is a feeling that they put "sealed", and then when the time comes they remove it editing the class and violating SOLID.
Continue reading...
This operator is used so that it cannot be inherited from the class.
But in the example of Unity, they had the Application class "sealed", and then in the new versions they just made the class Application.
As I understand it, they did so that they could extend the Application class.
Question: do I need to use "sealed" at all and in what cases? If the class extension can be useful later at any time. For example, I now have a SteamManager class (for working with the SteamAPI), should I do it "sealed" ?
There is a feeling that they put "sealed", and then when the time comes they remove it editing the class and violating SOLID.
Continue reading...