Click here to Skip to main content
15,396,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Pete O'Hanlon8-Mar-13 2:13
mvaPete O'Hanlon8-Mar-13 2:13 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 2:59
MemberKrishna Varadharajan8-Mar-13 2:59 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Keith Barrow8-Mar-13 3:22
professionalKeith Barrow8-Mar-13 3:22 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 3:41
MemberKrishna Varadharajan8-Mar-13 3:41 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Keith Barrow8-Mar-13 4:30
professionalKeith Barrow8-Mar-13 4:30 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 4:40
MemberKrishna Varadharajan8-Mar-13 4:40 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Keith Barrow8-Mar-13 4:49
professionalKeith Barrow8-Mar-13 4:49 
AnswerRe: When to use & when not to use ( Abstract Class & Interface ) Pin
GuyThiebaut8-Mar-13 2:40
professionalGuyThiebaut8-Mar-13 2:40 
An example of where I have used an interface and abstract class:

I created a print interface.
I implemented the general features through an abstract class(add line, print document etc).
I then inherited from this abstract class for printing from a datagrid or datatable(remember you cannot instantiate from an abstract class).
These classes then override, when needed, the methods in the abstract class.

This way I can extend the abstract class to print from pretty much anything I want.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens

GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 3:04
MemberKrishna Varadharajan8-Mar-13 3:04 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
GuyThiebaut8-Mar-13 3:28
professionalGuyThiebaut8-Mar-13 3:28 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 3:57
MemberKrishna Varadharajan8-Mar-13 3:57 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
GuyThiebaut8-Mar-13 4:16
professionalGuyThiebaut8-Mar-13 4:16 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 4:57
MemberKrishna Varadharajan8-Mar-13 4:57 
AnswerRe: When to use & when not to use ( Abstract Class & Interface ) Pin
PIEBALDconsult8-Mar-13 3:42
professionalPIEBALDconsult8-Mar-13 3:42 
AnswerRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Shameel8-Mar-13 4:08
professionalShameel8-Mar-13 4:08 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 4:33
MemberKrishna Varadharajan8-Mar-13 4:33 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Shameel8-Mar-13 5:01
professionalShameel8-Mar-13 5:01 
GeneralRe: When to use & when not to use ( Abstract Class & Interface ) Pin
Krishna Varadharajan8-Mar-13 5:53
MemberKrishna Varadharajan8-Mar-13 5:53 
AnswerRe: When to use & when not to use ( Abstract Class & Interface ) Pin
jschell8-Mar-13 12:41
Memberjschell8-Mar-13 12:41 
QuestionWhy SqlCommandBuilder Pin
Krishna Varadharajan8-Mar-13 1:50
MemberKrishna Varadharajan8-Mar-13 1:50 
AnswerRe: Why SqlCommandBuilder Pin
Eddy Vluggen8-Mar-13 3:01
professionalEddy Vluggen8-Mar-13 3:01 
GeneralRe: Why SqlCommandBuilder Pin
Krishna Varadharajan8-Mar-13 3:22
MemberKrishna Varadharajan8-Mar-13 3:22 
GeneralRe: Why SqlCommandBuilder Pin
Eddy Vluggen8-Mar-13 4:59
professionalEddy Vluggen8-Mar-13 4:59 
GeneralRe: Why SqlCommandBuilder Pin
Krishna Varadharajan8-Mar-13 5:55
MemberKrishna Varadharajan8-Mar-13 5:55 
GeneralRe: Why SqlCommandBuilder Pin
Eddy Vluggen8-Mar-13 7:12
professionalEddy Vluggen8-Mar-13 7:12 

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.