added new exercices
This commit is contained in:
1 parent
6b25e67c49
commit
c17800f71a
4 files changed
+96
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user