Virtual Keyword is used to override the method of parent class from child class :-
With virtual keyword,a method can be overridden or not but if we use abstract keyword then that method must be overridden
abstract - Must be overriden virtual - can be overriden sealed - cannot be overridden
No comments:
Post a Comment