+ 1

Drawing Applicatio C#

I have done the drawing applicatiln code coach and it didnt output anything: using System; using System.Collections.Generic; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { new Draw().StartDraw(); new Brush().StartDraw(); new Spray().StartDraw(); } } interface IDraw { void StartDraw(); } class Draw : IDraw { public virtual void StartDraw() { Console.WriteLine("Using pencil"); } } class Brush : Draw { public override void StartDraw() { Console.WriteLine("Using brush"); } } class Spray : Draw { public override void StartDraw() { Console.WriteLine("Using spray"); } } } Others have same/similar codes to me and when i try theirs it doesnt work either pls help

27th May 2021, 6:06 AM
Neurobean
Neurobean - avatar
1 ответ
+ 1
i troed it again and it worked sorry
27th May 2021, 6:49 PM
Neurobean
Neurobean - avatar