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.
5 Answers
+ 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 ...
+ 1
I Will read it carefuly.it look like a "constructor" for each Associates class data member.
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?
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
0
Oliver,
More like encapsulated getter and setter functions, with additional treats. But it's not related to constructors : )