+ 1

What am I doing wrong in this C# practice question?--Solved

I have to make a constructor that outputs New Post and a property that defines the text field. I can't make it work https://code.sololearn.com/cKqw0iY13cXf/?ref=app https://code.sololearn.com/cKqw0iY13cXf/?ref=app

19th Feb 2023, 11:58 PM
Mark Niles
Mark Niles - avatar
4 ответов
+ 7
Missing constructor declaration on line 23 needs to be added. public Post() Additional semicolon on line 34 needs to be removed. public String Text
20th Feb 2023, 1:15 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Post your update code!! it works fine by changes suggested by @Hatsy Rei.
20th Feb 2023, 12:49 PM
Jayakrishna 🇮🇳
+ 2
Hi, I had to do a code reset and type it all back in from scratch to get it to work
20th Feb 2023, 12:51 PM
Mark Niles
Mark Niles - avatar
+ 1
I've made those changes, but for some reason the get accessor won't change colours indicating it's working
20th Feb 2023, 1:31 AM
Mark Niles
Mark Niles - avatar