Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Last active January 17, 2024 14:56
Show Gist options
  • Save TheShubhamVsnv/54421f80d4e6bb7e1d4668899f685a60 to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/54421f80d4e6bb7e1d4668899f685a60 to your computer and use it in GitHub Desktop.
/*
Virtual is used with methods to indicate that the method can be overridden by a subclass.
It allows for polymorphism, enabling a subclass to provide a specific implementation for the method.
*/
public virtual class MyBaseClass {
public virtual void myVirtualMethod() {
// Ready for a virtual adventure!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment