Lecture overview -- Keyboard shortcut: 'u'  Previous page: Inheritance of methods: Example. -- Keyboard shortcut: 'p'  Next page: Polymorphism. Static and dynamic types -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Specialization, Extension, and Inheritance - slide 30 : 40

Overriding and Hiding in C#

What if a method M in class A also appears in class B?

class A {
  public void M(){}
}

class B: A{
  public void M(){}
}