Click here to Skip to main content
12,449,762 members (71,442 online)
   

C#

 
GeneralRe: Manual Coding vs Code Generation Pin
PIEBALDconsult22-Nov-12 9:51
memberPIEBALDconsult22-Nov-12 9:51 
AnswerRe: Manual Coding vs Code Generation Pin
PIEBALDconsult21-Nov-12 4:00
memberPIEBALDconsult21-Nov-12 4:00 
QuestionDesign Question Pin
TheGermoz15-Nov-12 17:31
memberTheGermoz15-Nov-12 17:31 
AnswerRe: Design Question Pin
DaveyM6915-Nov-12 19:31
mentorDaveyM6915-Nov-12 19:31 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 20:11
memberTheGermoz15-Nov-12 20:11 
AnswerRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 21:43
memberRahul Rajat Singh15-Nov-12 21:43 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 23:14
memberTheGermoz15-Nov-12 23:14 
AnswerRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 23:22
memberRahul Rajat Singh15-Nov-12 23: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 PinPopular
BobJanova15-Nov-12 23:12
memberBobJanova15-Nov-12 23:12 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 23:16
memberTheGermoz15-Nov-12 23:16 
GeneralRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 23:35
memberRahul Rajat Singh15-Nov-12 23:35 
GeneralRe: Design Question Pin
BobJanova16-Nov-12 0:09
memberBobJanova16-Nov-12 0:09 
AnswerRe: Design Question Pin
SledgeHammer0116-Nov-12 9:53
memberSledgeHammer0116-Nov-12 9:53 
GeneralRe: Design Question Pin
TheGermoz16-Nov-12 10:06
memberTheGermoz16-Nov-12 10:06 
AnswerRe: Design Question Pin
Clifford Nelson16-Nov-12 9:53
memberClifford Nelson16-Nov-12 9:53 
QuestionBackground worker thread Pin
MAW3015-Nov-12 14:54
memberMAW3015-Nov-12 14:54 
AnswerRe: Background worker thread Pin
DaveyM6915-Nov-12 18:51
mentorDaveyM6915-Nov-12 18:51 
QuestionArray, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 6:29
memberKKW_acd15-Nov-12 6:29 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
DaveyM6915-Nov-12 6:55
mentorDaveyM6915-Nov-12 6:55 
GeneralRe: Array, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 9:03
memberKKW_acd15-Nov-12 9:03 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
DaveyM6915-Nov-12 19:02
mentorDaveyM6915-Nov-12 19:02 
GeneralRe: Array, Struct, Class??? I'm so confused.... Pin
Richard MacCutchan16-Nov-12 0:02
mvpRichard MacCutchan16-Nov-12 0:02 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
Richard MacCutchan15-Nov-12 7:06
mvpRichard MacCutchan15-Nov-12 7:06 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
BobJanova16-Nov-12 0:16
memberBobJanova16-Nov-12 0:16 
QuestionWind Chill Automation with C# application Pin
omisheikh15-Nov-12 6:03
memberomisheikh15-Nov-12 6:03 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 26 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid