Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Method overriding
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); //base ==> derived BaseClass p = new DerivedClass(); p.getAddition(5,1.3F); } } public class BaseClass { public virtual void getAddition(int x, float y) { Console.WriteLine("Success from BaseClass"); } } public class DerivedClass:BaseClass { public override void getAddition(int x, float y) { Console.WriteLine("Success from DerivedClass"); } } }
run
|
edit
|
history
|
help
0
credentials
project euler 18
bst - lot of methods
araray
BTC sell estimator
Welcome
Delegates
Sum of digit using recursion
UrlAccess
WebScrape using Regex