Class Inheritance
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dharmraj ThakurRank #577 · 4.2K reputationPosted Jun 2, 2017, 12:52 AM EDT
santosh kumarRank #6,510 · 264 reputationPosted Jun 2, 2017, 2:08 AM EDT
You can achieve the output by changing the Derived class as below.
class Derived : Baseclass
{
public Derived(int ii):base(ii)
{
Console.Write("Derived \n");
}
}