Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using A Retrieved Type Pin
User 665824-Jan-09 2:36
User 665824-Jan-09 2:36 
AnswerRe: Using A Retrieved Type Pin
DaveyM6924-Jan-09 2:35
professionalDaveyM6924-Jan-09 2:35 
GeneralRe: Using A Retrieved Type Pin
User 665824-Jan-09 2:39
User 665824-Jan-09 2:39 
GeneralRe: Using A Retrieved Type Pin
DaveyM6924-Jan-09 2:48
professionalDaveyM6924-Jan-09 2:48 
GeneralRe: Using A Retrieved Type Pin
#realJSOP24-Jan-09 3:10
professional#realJSOP24-Jan-09 3:10 
GeneralRe: Using A Retrieved Type Pin
#realJSOP24-Jan-09 3:13
professional#realJSOP24-Jan-09 3:13 
AnswerRe: Using A Retrieved Type Pin
DaveyM6925-Jan-09 0:42
professionalDaveyM6925-Jan-09 0:42 
GeneralRe: Using A Retrieved Type Pin
#realJSOP26-Jan-09 2:56
professional#realJSOP26-Jan-09 2:56 
DaveyM69 wrote:
either throw a NotImplementedException


Nah - ugly is as ugly does. Smile | :)


DaveyM69 wrote:
or return String.Empty / "Not applicable" for the unused property.


I don't want to introduce interfaces to the group yet. We're training up our COBOL programmers so they can move to .Net/C# with the rest of the dev team via in-house training provided by the experienced .Net programmers we already have (there are four of us, and about a dozen of "them").

I'm giving this week's class, and am recapping what they learned over the last couple of weeks because I want to make sure they understand the fundamentals before we move on. Last week, they were introduced to OOP principals, and given a homework assignment to build an Employee class. They were told about inheritance, encapsulation, and polymorphism, but were not given real examples of those things. I'm starting with their homework assignment from last week, and using a 4-step solution to fully illustrate those concepts.

I don't fully understand interfaces and why they're used yet, but it seems to me that using an interface isn't appropriate because it destroys the object-oriented aspect of the code. (Don't forget, I'm a C++ guy at heart.) Can you give me an example of how an interface would be implemented/used in this particular case?


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 3:50
professionalDaveyM6926-Jan-09 3:50 
GeneralRe: Using A Retrieved Type Pin
#realJSOP26-Jan-09 5:28
professional#realJSOP26-Jan-09 5:28 
GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 10:02
professionalDaveyM6926-Jan-09 10:02 
GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 4:11
professionalDaveyM6926-Jan-09 4:11 
AnswerRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 11:26
professionalDaveyM6926-Jan-09 11:26 
Questionİf one array Label Enabled=false Pin
ammoti24-Jan-09 1:51
ammoti24-Jan-09 1:51 
GeneralRe: İf one array Label Enabled=false Pin
Guffa24-Jan-09 9:12
Guffa24-Jan-09 9:12 
GeneralRe: İf one array Label Enabled=false Pin
ammoti24-Jan-09 10:52
ammoti24-Jan-09 10:52 
AnswerRe: İf one array Label Enabled=false Pin
Guffa24-Jan-09 12:19
Guffa24-Jan-09 12:19 
GeneralRe: İf one array Label Enabled=false Pin
ammoti24-Jan-09 12:51
ammoti24-Jan-09 12:51 
GeneralRe: İf one array Label Enabled=false Pin
Guffa24-Jan-09 14:46
Guffa24-Jan-09 14:46 
Questionretrieving songs from database using voice input.. Pin
a4abhi24-Jan-09 1:39
a4abhi24-Jan-09 1:39 
AnswerRe: retrieving songs from database using voice input.. Pin
WebMaster26-Jan-09 3:25
WebMaster26-Jan-09 3:25 
GeneralRe: retrieving songs from database using voice input.. Pin
a4abhi11-Feb-09 7:30
a4abhi11-Feb-09 7:30 
Questionstring to array Pin
lawrenceinba24-Jan-09 1:12
lawrenceinba24-Jan-09 1:12 
AnswerRe: string to array Pin
User 665824-Jan-09 1:20
User 665824-Jan-09 1:20 
AnswerRe: string to array Pin
DaveyM6924-Jan-09 1:21
professionalDaveyM6924-Jan-09 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.