HR Question, Java Question, Asp.Net Question, C and C++ Question, SAP, Web Services, Window and XML Question

When we need to override a method of the base class in the sub class, then we give the virtual keyword in the base class method. This makes the method in the base class to be overridable. Methods, properties, and indexers can be virtual, which means that their implementation can be overridden in derived classes.

Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you  wouldn’t want global namespace.

No. The signature of the virtual method must remain the same, only the keyword virtual is changed to keyword override.

Internal keyword is one of the access specifier available in .Net framework , that makes a type visible in a  given assembly , for e.g  a single dll can contain multiple modules , essentially a multi file assembly , but it forms a single binary component , so any type with internal keyword will be [...]

                            

 Subscribe in a reader