-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: kpraveendotcom
Message 4 in Discussion
Just to add on to the discussion:<o:p></o:p>
Why would someone create a class if it can�t be
instantiated? (Private constructor means the class can�t be
instantiated!)<o:p></o:p>
That is exactly what is desired. It�s a
practice to use such constructor, in a class, where there are only static
members. But the added problem here is that it is abstract class.
VB (C# too) appears to be unhappy with this; It insists a call to base
constructor on derived class. I tried the same thing in VC++, its working
fine as follows:<o:p></o:p>
<o:p> </o:p>
using namespace System;<o:p></o:p>
__gc class MyClass : public System::Drawing::Brush<o:p></o:p>
{<o:p></o:p>
public:<o:p></o:p>
MyClass(void)<o:p></o:p>
{}<o:p></o:p>
<o:p> </o:p>
static String* MyMethod(){<o:p></o:p>
return
S"Test";<o:p></o:p>
}<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
I know that this still isn�t answering Manoj�s
second question. No idea how they (MS) derived SolidBrush from Brush!<o:p></o:p>
Away from this, what is that you were trying to achieve by
extending Drawing.Brush? There appears (through object browser) to be
nothing useful in there!<o:p></o:p>
<o:p> </o:p>
-Praveen<o:p></o:p>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]