• Top Posts

    What is the difference between Virtual method and Abstract method?

    • Virtual method must always have a default implementation. However, it can be overridden in the derived class, though not mandatory. It can be overridden using override keyword.
    • An Abstract method does not have an implementation. It resides in the abstract class. It is mandatory that the derived class implements the abstract method. An override keyword is not necessary here though it can be used.

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728