+ 1

What is wrong with this code ?

What is the problem this code ?. It's giving me an error cs1519.using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { class person { public string Name; public person(string Nm) { Name = Nm; } Public string getName() { return Name; } } static void Main(string[] args) { person p1 = new person("joseph"); Console.WriteLine(p1.getName()); } } }

22nd Apr 2020, 10:04 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
2 Antworten
+ 1
Thank you ~ swim ~.
22nd Apr 2020, 2:03 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar