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?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anupam SinghRank #643 · 3.7K reputationPosted May 17, 2014, 5:09 AM EDT
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