Solved

C# class creation

Posted on 2013-06-27
5
351 Views
Last Modified: 2013-07-22
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
Comment
Question by:pensiongenius
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39282456
Is this school work?
0
 

Author Comment

by:pensiongenius
ID: 39282544
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
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39282555
OK. So then what is your question?
0
 

Accepted Solution

by:
pensiongenius earned 0 total points
ID: 39331770
no assistance is further needed with this question.
0
 

Author Closing Comment

by:pensiongenius
ID: 39345358
I figured it out.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now