added new exercices

This commit is contained in:
didier amyot committed 2023-08-21 09:11:33 -04:00
1 parent 6b25e67c49
commit c17800f71a
4 files changed
+96

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
using Algorithms.IdCard;
public class IDCard
{
private Name name;
private PostalCode postalCode;
private TelephonNumber telephonNumber;
public IDCard(Name name,
PostalCode postalCode,
TelephonNumber telephonNumber)
{
this.name = name;
this.postalCode = postalCode;
this.telephonNumber = telephonNumber;
}
public bool IsValid()
{
return name.IsValid()
&& telephonNumber.IsValid()
&& postalCode.IsValid();
}
}