Why I have problem when I press "try it your self" it works But when i do it same But in playground it didn't Work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why I have problem when I press "try it your self" it works But when i do it same But in playground it didn't Work?

I learn in c# object and classes lesson 3 i try it in lesson's playground it works. But i tried in playground it didn't Work i dont understand what is wrong. I copy original and then still didn't Work.

25th Aug 2019, 11:58 AM
Random guy
Random guy - avatar
7 Answers
+ 2
Choose the code type
25th Aug 2019, 12:27 PM
Gordon
Gordon - avatar
+ 2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Person { int age; string Name; public void SayHi(){ Console.WriteLine("Hi") ; } static void Main(string[] args) { Person p1 = new Person() ; p1.SayHi() ; } } } Now i did like you and yeah when i write copy i mean Hand copy
25th Aug 2019, 12:55 PM
Random guy
Random guy - avatar
+ 1
ERROR 13 20. 16 26,27, 25 15 26,27 etc
25th Aug 2019, 12:04 PM
Random guy
Random guy - avatar
+ 1
Yep
25th Aug 2019, 12:12 PM
Random guy
Random guy - avatar
+ 1
Wait Gordon I dont understand you
25th Aug 2019, 12:28 PM
Random guy
Random guy - avatar
+ 1
Man is public on my profile
25th Aug 2019, 12:37 PM
Random guy
Random guy - avatar
+ 1
Yeah
25th Aug 2019, 12:58 PM
Random guy
Random guy - avatar