vb.net - Is it standard practice to delete or comment out the code within an overridable function of a base class? -
i spent 45 minutes arguing teacher today, , seems stupid me maybe wasn't explaining well.
she trying tell me 1 should comment out or delete code block within overridable function of parent class when make child class function overrides it.
is there this?
definitely not. because 1 class overrides doesn't mean other classes inherit base class same. in cases want base class functionality remain there.
and there point dotnet has made (child class needing call base class's function reuse functionality present there)
Comments
Post a Comment