Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

C# class creation

I need to create a C# class with the following properties.  I am a novice in C#

{

    //This class should have the following properties
    //ID, Firstname, Lastname, Collection of Addresses, Email Address, Password, LastPurchased
    //Please decorate with Data Annotations. 
    //FirstName max length is 50, mandatory
    //Lastname max length is 50, mandatory
    //Email Address max length is 150, not mandatory
    //Password max length is 50, mandatory
    //LastPurchased not mandatory

    public class Customer
    {






    }





    }

    //This class should have the following properties
    //ID, AddressLine1, AddressLine2, City, State, Zip, Address Type
    //Please decorate with Data Annotations. 
    //AddressLine1 max length is 250, mandatory
    //AddressLine2 max length is 250, not mandatory
    //City max length is 100, mandatory
    //State max length is 2, mandatory
    //Zip max length is 10, not mandatory
    //Address Type is an enum field (please create with enum value of Home Address, Work Address, Mailing Address
    public class Address
    {



   }

Open in new window

0
pensiongenius
Asked:
pensiongenius
  • 3
  • 2
1 Solution
 
käµfm³d 👽Commented:
Is this school work?
0
 
pensiongeniusAuthor Commented:
No, but it is a challenge from a friend, this is only the first part.  He said I could use any resources I had at my disposal.  I am putting a similar challenge out to him in VB.net.
0
 
käµfm³d 👽Commented:
OK. So then what is your question?
0
 
pensiongeniusAuthor Commented:
no assistance is further needed with this question.
0
 
pensiongeniusAuthor Commented:
I figured it out.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now