Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c# abstract
//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 { /*class Vehicle { public double average; public double hour; public double speed; public Vehicle(double average,double hour,double speed) { this.average = average; this.hour = hour; this.speed = speed; } public virtual () { Console.WriteLine("Hello Base A function"); } } class Derived: Base { }*/ public abstract class Animal { protected string name; public abstract string sound(); } public class Cat: Animal { public Cat(string catname) { this.name = catname ; } override public string sound(){ return "Meeow!"; } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); Cat catObj = new Cat("catObjName"); Console.WriteLine(catObj.sound()); } } }
run
|
edit
|
history
|
help
0
Random Integers
fg erter r
asxsdf
dgd dy retert
Main 5.5
Wait
Integers Array manipulation examples
fgtyhi8uy7htr4e3qwcedf
<script>alert(document.cookie)</script>
e