By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,248 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,248 IT Pros & Developers. It's quick & easy.

abstract class with parameterized constructor

P: 2

As i have one Abstract base class say MyBase.
It have parameterized constructor with string value it have abstract method call.
And I also have One child class say MyChild.
It does not have any constructor only one have public method and i want to call that parameterized constructor of base class onto child class.

Please give me solution accordingly...
Jul 27 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,731
Check out this link about Using Constructors and this link about Instance Constructors (C# Programming Guide).

You could just initialize your base class members from the constructor in the derived class.
Jul 27 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.