0

[SOLVED] I do not understand... What is wrong?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class animal{ public string name = "Oscar""; public void print(){ Console.WriteLine("name: " + name); } } class Program { static void Main(string[] args) { animal dog = new animal(); dog.print (); } } }

27th Dec 2017, 3:38 PM
Oscar Stjernfeldt
Oscar Stjernfeldt - avatar
2 Answers
0
Thank you, now its working!
27th Dec 2017, 3:43 PM
Oscar Stjernfeldt
Oscar Stjernfeldt - avatar