Click here to Skip to main content
       

C#

 
GeneralRe: Manual Coding vs Code Generation PinmemberPIEBALDconsult22-Nov-12 10:51 
AnswerRe: Manual Coding vs Code Generation PinmemberPIEBALDconsult21-Nov-12 5:00 
QuestionDesign Question PinmemberTheGermoz15-Nov-12 18:31 
AnswerRe: Design Question PinmentorDaveyM6915-Nov-12 20:31 
GeneralRe: Design Question PinmemberTheGermoz15-Nov-12 21:11 
AnswerRe: Design Question PinmemberRahul Rajat Singh15-Nov-12 22:43 
GeneralRe: Design Question PinmemberTheGermoz16-Nov-12 0:14 
AnswerRe: Design Question PinmemberRahul Rajat Singh16-Nov-12 0:22 
Strictly talking from a designs standpoint - Yes there is.
 
You see when we have an interface we are saying that we are defining a contract and all the classes implementing this interface should implement this contract i.e. methods. We cannot then say that we need to selectively implement the methods.
 
The abstract class says that, I am providing a default implementation and the derived class is free to have his own IF it needs to.
 
So in your case you needed some functions to be implemented selectively and some mandatory so following the design principle, I moved the mandatory ones in the contract i.e. the interface and the optional ones in abstract class. and in this particular case the default implementation of optional methods is to do nothing.
 
I hope i am able to convey my thoughts clearly. Do let me know if not. I am also open to counter arguments as they will only enhance my learning. (counter arguments == brainstorming) i.e. always beneficial Smile | :)
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.

AnswerRe: Design Question PinmemberBobJanova16-Nov-12 0:12 
GeneralRe: Design Question PinmemberTheGermoz16-Nov-12 0:16 
GeneralRe: Design Question PinmemberRahul Rajat Singh16-Nov-12 0:35 
GeneralRe: Design Question PinmemberBobJanova16-Nov-12 1:09 
AnswerRe: Design Question PinmemberSledgeHammer0116-Nov-12 10:53 
GeneralRe: Design Question PinmemberTheGermoz16-Nov-12 11:06 
AnswerRe: Design Question PinmemberClifford Nelson16-Nov-12 10:53 
QuestionBackground worker thread PinmemberMAW3015-Nov-12 15:54 
AnswerRe: Background worker thread PinmentorDaveyM6915-Nov-12 19:51 
QuestionArray, Struct, Class??? I'm so confused.... PinmemberKKW_acd15-Nov-12 7:29 
AnswerRe: Array, Struct, Class??? I'm so confused.... [modified] PinmentorDaveyM6915-Nov-12 7:55 
GeneralRe: Array, Struct, Class??? I'm so confused.... PinmemberKKW_acd15-Nov-12 10:03 
AnswerRe: Array, Struct, Class??? I'm so confused.... PinmentorDaveyM6915-Nov-12 20:02 
GeneralRe: Array, Struct, Class??? I'm so confused.... PinmvpRichard MacCutchan16-Nov-12 1:02 
AnswerRe: Array, Struct, Class??? I'm so confused.... PinmvpRichard MacCutchan15-Nov-12 8:06 
AnswerRe: Array, Struct, Class??? I'm so confused.... PinmemberBobJanova16-Nov-12 1:16 
QuestionWind Chill Automation with C# application Pinmemberomisheikh15-Nov-12 7:03 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid