Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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

user-image
Question added by Prospero Sevilla , IT Generalist , Abu Zaid & El Essawi Group
Date Posted: 2014/07/26
Mohammad Nasser Eddin
by 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
by syed bilal , Senior Software Engineer , Symantec

make is virtual. google inheritence and abstract classes for it

self exploring isthe best way of learning

More Questions Like This