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
Prudence_1 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
jwenting 1,889 duckman Team Colleague
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
rproffitt commented: +1 for effort. +16
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.