Hi Shambu,
What Mattias is mentioned is the right way of invoking a base class constructor.
In your , you are simply creating an instance of base class(though this object cannot be accessed as an identifier is not provided).
When we invoke a base class constructor -in the way Mattias has mentioned, a base class object is not created, but the featurs inherited by the sub class will get initialized.
--
Girish Kumar
ICICI Infotech
"Mattias Sjögren" wrote:
> Shikari,
>
> >Is there any other ways of doing what I did?
>
> You probably want:
>
> public Child(string A) : base(A, "Hello")
> {
> }
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>