0

Hi Sololear

I would like to inform you that when I learning c#, I found this morning that your code challenge Card Validator (chapter classes and object, property, set and get or setter and Getter in standard notation,) there is mismatch in your requirements yg that will lead. an engineer to difficulties in write the suitable and proper code.

15th Nov 2022, 10:26 PM
Oliver Pasaribu
Oliver Pasaribu - avatar
5 Réponses
+ 2
Hello Oliver, Please state the mismatch clearly in order for SoloLearn's staffs to understand the situation immediately. (Edit) Better send them an e-mail for something like this, they don't constantly watch the forum ...
16th Nov 2022, 2:13 AM
Ipang
+ 1
I Will read it carefuly.it look like a "constructor" for each Associates class data member.
16th Nov 2022, 9:00 PM
Oliver Pasaribu
Oliver Pasaribu - avatar
0
I mean I don't exactly know, but the syntax for property cannot used as written in the book. Example: class ABCD{ private string name; // Property Associates with //name public Name{ set{name= value;} get={return name;} Instead I use ordinary member function: public void set name(string aName) { name = aName; } public String getName() { return name; } What do you think?
16th Nov 2022, 9:41 AM
Oliver Pasaribu
Oliver Pasaribu - avatar
0
Hello Oliver, You may refer this page to know more about properties, and how to properly write one. https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties
16th Nov 2022, 2:46 PM
Ipang
0
Oliver, More like encapsulated getter and setter functions, with additional treats. But it's not related to constructors : )
17th Nov 2022, 12:37 AM
Ipang