Click here to Skip to main content
15,909,898 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: building architecture. Pin
montu337712-May-05 2:04
montu337712-May-05 2:04 
GeneralRe: building architecture. Pin
Christian Graus15-May-05 18:18
protectorChristian Graus15-May-05 18:18 
GeneralRe: building architecture. Pin
montu337717-May-05 0:08
montu337717-May-05 0:08 
GeneralRe: building architecture. Pin
Christian Graus17-May-05 12:58
protectorChristian Graus17-May-05 12:58 
GeneralRe: building architecture. Pin
montu337723-May-05 4:49
montu337723-May-05 4:49 
GeneralRe: building architecture. Pin
Christian Graus23-May-05 11:43
protectorChristian Graus23-May-05 11:43 
GeneralRe: building architecture. Pin
montu337724-May-05 7:50
montu337724-May-05 7:50 
GeneralRe: building architecture. Pin
Christian Graus24-May-05 11:45
protectorChristian Graus24-May-05 11:45 
montu3377 wrote:
we can't create instance of abstract class.

My 'toolbase' class is abstract, and I create an instance of it in my application, no problems. I never create an instance of toolbase though, that's not what it is for, the base class is useless by itself anyhow, that's not what it is for.

montu3377 wrote:
second way,simply i can directly create instance of second class that inherited base class in that case why had created base class that is also question.Here i am sending u one simple code what i am doing.

You create a base class because your app only needs to use one tool at a time, so you carry an instance of the base class, but you instantiate it as instances of the derived classes. i.e. if you click the FreeHandDraw button then my instance of toolbase gets instantiated as an instance of toolFreeHandDraw. The point is that catching UI events is common to all tools, so it's defined in a base class, so I don't need to switch between drawing modes with every UI event to figure out which control to send the event to.


Christian Graus - Microsoft MVP - C++
GeneralRe: building architecture. Pin
montu337724-May-05 23:26
montu337724-May-05 23:26 
GeneralRe: building architecture. Pin
Christian Graus25-May-05 12:48
protectorChristian Graus25-May-05 12:48 
GeneralIncorrect value returned from this.getType ().Assembly.Location for C# COM-addin Pin
Barry G10-May-05 18:27
Barry G10-May-05 18:27 
GeneralRe: Incorrect value returned from this.getType ().Assembly.Location for C# COM-addin Pin
Barry G11-May-05 18:26
Barry G11-May-05 18:26 
QuestionHow to create a reminder notification in Pocket PC Pin
Member 19358809-May-05 21:03
Member 19358809-May-05 21:03 
QuestionHow to find a pattern in an image Pin
Tad McClellan9-May-05 16:40
professionalTad McClellan9-May-05 16:40 
AnswerRe: How to find a pattern in an image Pin
Christian Graus9-May-05 17:19
protectorChristian Graus9-May-05 17:19 
AnswerRe: How to find a pattern in an image Pin
abcxyz8224-May-05 4:56
abcxyz8224-May-05 4:56 
GeneralA few questions regarding Whidbey Beta 2 Pin
Carl Mercier9-May-05 12:35
Carl Mercier9-May-05 12:35 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
MoustafaS9-May-05 12:43
MoustafaS9-May-05 12:43 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Carl Mercier9-May-05 13:18
Carl Mercier9-May-05 13:18 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Christian Graus9-May-05 13:20
protectorChristian Graus9-May-05 13:20 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Christian Graus9-May-05 13:19
protectorChristian Graus9-May-05 13:19 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Carl Mercier9-May-05 13:47
Carl Mercier9-May-05 13:47 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Christian Graus9-May-05 13:50
protectorChristian Graus9-May-05 13:50 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Carl Mercier10-May-05 2:52
Carl Mercier10-May-05 2:52 
GeneralRe: A few questions regarding Whidbey Beta 2 Pin
Christian Graus10-May-05 12:52
protectorChristian Graus10-May-05 12:52 

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.