Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme 

C# Overriding example using virtual and override keywords

Language: Editor: Layout:
+ ] Show input
Compilation time: 0,12 sec, absolute running time: 0,08 sec, cpu time: 0,06 sec, average memory usage: 12 Mb, average nr of threads: 3 
edit mode |  history  | discussion
Warning(s):
(47:21) 'Rextester.Program.C.Method()' hides inherited member 'Rextester.Program.B.Method()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
Hello, world!
A
B
B
B