Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Abstract class by Derived class reference example
//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 abstract class Abstr { public void Describe(string x) { //do something Console.WriteLine(x); } public abstract void SayAbstract(string x); } public class Program : Abstr { public override void SayAbstract(string x) { Console.WriteLine(x); } public static void Main(string[] args) { Abstr obj = new Program(); obj.Describe("Hai"); obj.SayAbstract("This is from abstract class reference"); } } }
run
|
edit
|
history
|
help
0
sgshdfhdfhfdh
HashSet implementation
Fórum Parallel Threads ( Without Fun )
Type win
sdfrgthyujyhtgrf
All
Test
15
C# get decimal part only form double extension
learning1