By asking this question , I mean to say that why to do class as sealed , because only if the purpose is too restrict inheritance, than we can use the base class object instead of using child class object, and lets suppose , child class inherits the base class than also there is no effect in the base class, so why to seal the class, why don’t we use the instance of base class only?
I am asking it after searching alot , but didn’t got exact answer