Click here to Skip to main content
15,884,810 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridView Pin
Assaf825-Sep-07 4:50
Assaf825-Sep-07 4:50 
GeneralRe: DataGridView Pin
Urs Enzler5-Sep-07 4:55
Urs Enzler5-Sep-07 4:55 
GeneralRe: DataGridView Pin
Assaf825-Sep-07 9:53
Assaf825-Sep-07 9:53 
GeneralRe: DataGridView Pin
Urs Enzler5-Sep-07 20:14
Urs Enzler5-Sep-07 20:14 
QuestionIntel UPnP SDK Pin
MicealG5-Sep-07 2:41
MicealG5-Sep-07 2:41 
QuestionWord Addins Pin
som84835-Sep-07 2:20
som84835-Sep-07 2:20 
QuestionAbstract, interface, Confusion Pin
Vodstok5-Sep-07 2:19
Vodstok5-Sep-07 2:19 
AnswerRe: Abstract, interface, Confusion Pin
Urs Enzler5-Sep-07 2:56
Urs Enzler5-Sep-07 2:56 
1) A class in c# can derive from one class and can implement as many interfaces as it wants.

2) an abstract class contains abstract methods and normally at least one non-abstract method. They are used if there exists a common behaviour (non-abstract methods) and methods that can only be implemented by derived classes (abstract methods).

3) interfaces are used to define an Interface that means it describes what some object can do.

4) you can look at an interface as a class containing only abstract methods

5) because you can not have multiple inheritance in c#, interfaces are used instead.

A good object oriented base idea is that you always program against an interface and never against a class. This simplifies loose coupling of components a lot as well as it allows the replacement of an instance implementing a certain interface with another (good in testing with mocks for example) or if your code has several strategies to handle something that can be exchanged (strategy pattern).

I'm stopping now, it's going loooong.

-^-^-^-^-^-
no risk no funk ................... please vote ------>

GeneralRe: Abstract, interface, Confusion Pin
Vodstok5-Sep-07 3:19
Vodstok5-Sep-07 3:19 
GeneralRe: Abstract, interface, Confusion [modified] Pin
Urs Enzler5-Sep-07 3:25
Urs Enzler5-Sep-07 3:25 
GeneralRe: Abstract, interface, Confusion Pin
Larantz5-Sep-07 9:05
Larantz5-Sep-07 9:05 
Questionuse math.h in C# Pin
max_dev2006@yahoo.com5-Sep-07 1:35
max_dev2006@yahoo.com5-Sep-07 1:35 
AnswerRe: use math.h in C# Pin
Nouman Bhatti5-Sep-07 1:38
Nouman Bhatti5-Sep-07 1:38 
GeneralRe: use math.h in C# Pin
max_dev2006@yahoo.com5-Sep-07 19:25
max_dev2006@yahoo.com5-Sep-07 19:25 
AnswerRe: use math.h in C# Pin
blackjack21505-Sep-07 1:47
blackjack21505-Sep-07 1:47 
QuestionCannot take the address or size of a variable of a managed type Pin
Vikas Salvi5-Sep-07 1:32
Vikas Salvi5-Sep-07 1:32 
AnswerRe: Cannot take the address or size of a variable of a managed type Pin
TJoe5-Sep-07 8:41
TJoe5-Sep-07 8:41 
QuestionHow to create new file Pin
Hum Dum5-Sep-07 1:26
Hum Dum5-Sep-07 1:26 
AnswerRe: How to create new file Pin
originSH5-Sep-07 1:37
originSH5-Sep-07 1:37 
GeneralRe: How to create new file Pin
Vodstok5-Sep-07 2:00
Vodstok5-Sep-07 2:00 
GeneralRe: How to create new file Pin
originSH5-Sep-07 3:19
originSH5-Sep-07 3:19 
GeneralRe: How to create new file Pin
Vodstok5-Sep-07 3:20
Vodstok5-Sep-07 3:20 
QuestionIt's quite embarrassing.. Pin
Muammar©5-Sep-07 0:55
Muammar©5-Sep-07 0:55 
AnswerRe: It's quite embarrassing.. Pin
Urs Enzler5-Sep-07 1:00
Urs Enzler5-Sep-07 1:00 
AnswerRe: It's quite embarrassing.. Pin
Guffa5-Sep-07 2:44
Guffa5-Sep-07 2:44 

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.