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

C#

 
Questionbest explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
BillWoodruff16-Nov-15 3:58
professionalBillWoodruff16-Nov-15 3:58 
AnswerRe: best explanation of creating a C# class as 'virtual, or 'abstract ... for beginners in the language Pin
OriginalGriff16-Nov-15 4:04
mveOriginalGriff16-Nov-15 4:04 
GeneralRe: best explanation of creating a C# class as 'virtual, or 'abstract ... for beginners in the language Pin
BillWoodruff16-Nov-15 4:20
professionalBillWoodruff16-Nov-15 4:20 
AnswerRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
Simon_Whale16-Nov-15 4:40
Simon_Whale16-Nov-15 4:40 
GeneralRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
BillWoodruff18-Nov-15 0:33
professionalBillWoodruff18-Nov-15 0:33 
AnswerRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
Pete O'Hanlon16-Nov-15 5:38
mvePete O'Hanlon16-Nov-15 5:38 
GeneralRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
BillWoodruff18-Nov-15 0:34
professionalBillWoodruff18-Nov-15 0:34 
AnswerRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
OriginalGriff16-Nov-15 5:42
mveOriginalGriff16-Nov-15 5:42 
It's difficult, particularly when you start - but I tend towards the "does a default make any sense?" approach.
If the base class can do something sensible and useful then it's a virtual method. If it can't, it's abstract.
So a ToString equivalent would be virtual, but a Save would be abstract.
Does that make sense?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: best explanation of using C# 'virtual, or 'abstract methods ... for beginners in the language Pin
Gerry Schmitz16-Nov-15 18:28
mveGerry Schmitz16-Nov-15 18:28 
QuestionHow can I fill a Combobox while writing? Pin
Member 1191673515-Nov-15 23:56
Member 1191673515-Nov-15 23:56 
AnswerMessage Closed Pin
16-Nov-15 0:09
professionalPANKAJMAURYA16-Nov-15 0:09 
GeneralRe: How can I fill a Combobox while writing? Pin
John Torjo16-Nov-15 0:18
professionalJohn Torjo16-Nov-15 0:18 
AnswerRe: How can I fill a Combobox while writing? Pin
John Torjo16-Nov-15 0:16
professionalJohn Torjo16-Nov-15 0:16 
GeneralRe: How can I fill a Combobox while writing? Pin
Member 1191673518-Nov-15 1:47
Member 1191673518-Nov-15 1:47 
GeneralRe: How can I fill a Combobox while writing? Pin
John Torjo18-Nov-15 2:10
professionalJohn Torjo18-Nov-15 2:10 
AnswerRe: How can I fill a Combobox while writing? Pin
PANKAJMAURYA16-Nov-15 0:25
professionalPANKAJMAURYA16-Nov-15 0:25 
GeneralRe: How can I fill a Combobox while writing? Pin
Member 1191673518-Nov-15 2:08
Member 1191673518-Nov-15 2:08 
GeneralRe: How can I fill a Combobox while writing? Pin
PANKAJMAURYA18-Nov-15 17:19
professionalPANKAJMAURYA18-Nov-15 17:19 
Questioncall an api in c# Pin
Member 1212120115-Nov-15 21:25
Member 1212120115-Nov-15 21:25 
AnswerRe: call an api in c# Pin
OriginalGriff15-Nov-15 21:44
mveOriginalGriff15-Nov-15 21:44 
AnswerRe: call an api in c# Pin
Afzaal Ahmad Zeeshan16-Nov-15 2:19
professionalAfzaal Ahmad Zeeshan16-Nov-15 2:19 
AnswerRe: call an api in c# Pin
Dave Kreskowiak16-Nov-15 4:06
mveDave Kreskowiak16-Nov-15 4:06 
AnswerRe: call an api in c# Pin
Pete O'Hanlon16-Nov-15 5:51
mvePete O'Hanlon16-Nov-15 5:51 
GeneralRe: call an api in c# Pin
Member 1212120116-Nov-15 17:50
Member 1212120116-Nov-15 17:50 
AnswerRe: call an api in c# Pin
Gerry Schmitz16-Nov-15 18:40
mveGerry Schmitz16-Nov-15 18:40 

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.