Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Class Inheritance
Seshadri M
7y
217
1
Reply
class Baseclass
{
int i;
public Baseclass(int ii)
{
i = ii;
Console.Write("Base \n");
}
}
class Derived : Baseclass
{
public Derived(int ii)
{
Console.Write("Derived \n");
}
}
class MyProgram
{
static void Main(string[ ] args)
{
Derived d = new Derived(10);
}
}
I am getting output as Derived
but i need to get output
Base
Derived
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to get Column names by passing table name in mvc
why use new in c#