Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public State
- {
- public virtual Party()
- {
- }
- }
- public DanceState : State
- {
- public override Party()
- {
- base.Party(); // call or not
- // do stuff
- }
- }
- int main()
- {
- State state = new DanceState();
- state.Party();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement