Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How do you declare a method on a base class so that it can be overridden in the derived class?

user-image
Question ajoutée par Prospero Sevilla , IT Generalist , Abu Zaid & El Essawi Group
Date de publication: 2014/07/26
Mohammad Nasser Eddin
par Mohammad Nasser Eddin , Senior Developer , Minerets

in VB.NET wou should put before the method name "Overridable" to declare that this method can be overrided in sub classes, and in sub class if you want to override that method add "Overrides" before its name and it will be overrided, on the other hand, the C# deals like this too

syed bilal
par syed bilal , LucidLane

make is virtual. google inheritence and abstract classes for it

self exploring isthe best way of learning

More Questions Like This