How do you implement Inheritance in dot net ?
Answers were Sorted based on User's Feedback
Answer / mohan kumar e.
By using ":" we can implement inheritance.
Is This Answer Correct ? | 17 Yes | 1 No |
In c++ we include the :: operator.
In c# we include the " : "
here example
class class1
{
----
----
----
}
class class2 : class1
{
-----
-----
-----
}
when we use the multiple class for implementation,comman(,)
is used to seperate for the class
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / neelam sharma
by using : we can implement the inheritance
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / tarun kumar
In c# we include the " : "
here example
class class1
{
----
----
----
}
class class2 : class1
{
-----
-----
-----
}
Is This Answer Correct ? | 5 Yes | 0 No |
Inheritence is nothing but base class properties come to derived class
example
class sample
{
//here we write some members
}
class sampl1:sample
{
//sample members acess here
}
Is This Answer Correct ? | 3 Yes | 0 No |
What is hierarchical inheritance in c#?
Can we inherit class that contains only one private constructor?
What is the difference between ref and out parameters in c#?
What is global asax in c#?
Can you inherit from a static class in c#?
Can you inherit from multiple classes in c#?
What is difference between override and new in c#?
Can you see a loop recorder?
What is private protected in c#?
How do I start a program in c#?
What is the use of constructor in c# with example?
Why do we use interfaces in c#?