1.2 Convert the following classes to valid C# classes: SemiDiode + ForwardV {get; set; }: Double +ReverseV (get; set; }: Double +BreakdownV {get, set; }: Double + Semi Diode) + SemiDiode(forwardV: Double, reverseV: Double, breakdownV: Double) +ToString(): String Laser LED wavelength: Int32 -color: String +Wavelength {get; set; } : Int32 +Laser() + Color (get; set; }: String +LED() +GetCopy(): Object SemiDiodes +this(Int32 index) {get; set; } : SemiDiode + SemiDiodes) + Add(newSemiDiode: SemiDiode): Void +Remove(oldSemiDiode: Semi Diode): Void .ToString() must return a meaningful string with all the properties Question 1 continues... • Valid values for color are: "RED", "GREEN", "BLUE", with "RED" being the default (recall from your first year the purpose of a public, non-automatic property) • Valid values for wavelength is the inclusive range from 405 to 3330 with 405 being the default (recall from your first year the purpose of a public, non-automatic property) • SemiDiodes is a collectionBase • Remember: Double, String and Int32 that you see in the UML are NOT the valid C# type names. You must convert the UML type names to the valid C# type names you started using in SOD1/SSD1.NO

Recommended Answers

The Reusable Code Snippet is for when you want to share your "Reusable Code Snippet." I look forward to your code in a future posting.

Jump to Post

All 2 Replies

The Reusable Code Snippet is for when you want to share your "Reusable Code Snippet." I look forward to your code in a future posting.

What have you actually tried?
What exactly is your problem?

We're not here to do your homework for you...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.