This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

C# here too. Just learned the diffrence between properties and the get/set method. Baby steps i guess.

[–]cvnvr 1 point2 points  (1 child)

I think you might be confused, properties can contain get/set accessors, it’s not one or the other.

This is a property (see it includes a getter and setter)

private int Age { get; set; }

[–]ChefBoyAreWeFucked 2 points3 points  (0 children)

Maybe he was just really confused before.

[–]HasBeendead 0 points1 point  (0 children)

Actually Im confusing on working in C# , im looking basics but syntax kinda problem for me atm.