Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac21-Oct-09 13:36
CBenac21-Oct-09 13:36 
GeneralRe: What is the best way to call methods in a commom class? Pin
Luc Pattyn21-Oct-09 13:43
sitebuilderLuc Pattyn21-Oct-09 13:43 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac22-Oct-09 2:49
CBenac22-Oct-09 2:49 
AnswerRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:32
professional dan!sh 21-Oct-09 5:32 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 5:48
mentorNot Active21-Oct-09 5:48 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:55
professional dan!sh 21-Oct-09 5:55 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 6:28
mentorNot Active21-Oct-09 6:28 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 7:26
professional dan!sh 21-Oct-09 7:26 
Mark Nischalke wrote:
if there is a need later to add more methods to support additional functionality every derived class will need to be updated, regardless of whether they need the functionality or not.


Not sure about this thing. If I inherit from a class, and later sometime I change the base class, how would that affect child classes which do not need the newly added methods?

I just created a sample solution. There, class X (not an abstract class) had a protected method Test1. I inherited that in class Y. I had called Test1 in the constructor of Y. Then, I added another method in class X. I ran the application again. Worked fine. Are we at the same page?

It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 7:49
mentorNot Active21-Oct-09 7:49 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 7:59
professional dan!sh 21-Oct-09 7:59 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 8:28
mentorNot Active21-Oct-09 8:28 
Questionscript Pin
netJP12L21-Oct-09 4:53
netJP12L21-Oct-09 4:53 
AnswerRe: script Pin
dan!sh 21-Oct-09 5:29
professional dan!sh 21-Oct-09 5:29 
AnswerRe: script Pin
Rob Branaghan21-Oct-09 5:32
Rob Branaghan21-Oct-09 5:32 
QuestionSerialization of a class which is inherriting from the TreeNode class Pin
mhouck21-Oct-09 3:49
mhouck21-Oct-09 3:49 
QuestionHow to Add a Column to an imported excel file to a DataGridView . Pin
nassimnastaran21-Oct-09 3:39
nassimnastaran21-Oct-09 3:39 
AnswerRe: How to Add a Column to an imported excel file to a DataGridView . Pin
dan!sh 21-Oct-09 5:28
professional dan!sh 21-Oct-09 5:28 
GeneralRe: How to Add a Column to an imported excel file to a DataGridView . Pin
nassimnastaran21-Oct-09 6:20
nassimnastaran21-Oct-09 6:20 
GeneralRe: How to Add a Column to an imported excel file to a DataGridView . Pin
dan!sh 21-Oct-09 7:57
professional dan!sh 21-Oct-09 7:57 
GeneralRe: How to Add a Column to an imported excel file to a DataGridView . Pin
nassimnastaran21-Oct-09 19:03
nassimnastaran21-Oct-09 19:03 
QuestionMDIParent Pin
Socheat.Net21-Oct-09 3:33
Socheat.Net21-Oct-09 3:33 
AnswerRe: MDIParent Pin
dan!sh 21-Oct-09 5:26
professional dan!sh 21-Oct-09 5:26 
Question[Message Deleted] Pin
RINSON VARGHESE21-Oct-09 2:40
RINSON VARGHESE21-Oct-09 2:40 
AnswerRe: c# RePost Pin
Richard MacCutchan21-Oct-09 2:42
mveRichard MacCutchan21-Oct-09 2:42 
Question[Message Deleted] Pin
RINSON VARGHESE21-Oct-09 2:39
RINSON VARGHESE21-Oct-09 2:39 

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.