Skip to content

when foo is called from the child class, child's bar will be called, instead of parent's

Notifications You must be signed in to change notification settings

theilgaz/call-child-overridden-method-from-parent-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

call-child-overridden-method-from-parent-class

when foo is called from the child class, child's bar will be called, instead of parent's

Flow

Entrypoint

MyForm.Ctor

Steps

  1. Call Child.CallFoo() method in MyForm.Ctor().
  2. This method will execute Base.Foo().
  3. Base.Foo() will execute Base.Bar().
  4. Base.Bar() will execute Child.Bar().
  5. MessageBox will raise for "Called Child.Bar"

About

when foo is called from the child class, child's bar will be called, instead of parent's

Topics

Resources

Stars

Watchers

Forks

Languages