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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -