What is purpose of VIrtual Method?
What is purpose of VIrtual Method? Can I override method in derived class without marking it as virtual in base class?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anupam SinghPosted May 17, 2014, 9:09 AM
Virtual method are method that is defined intended to override by derived class and its not mandatory to override it.
you can override method in derived class only and only if it is an abstract(method without body) or virtual.
Abstract methods can be defined in interface and abstract class only.
you can read more about virtual method here