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?s the difference between an interface and abstract class?
Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio ?
Are all methods virtual in c#?
How do I create a dbml file?
What is difference between c sharp and c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
Why do we use yield in c#?
What is short circuit logical evaluation?
How can we make a thread sleep for infinite period ?
What is use of FormBoarderStyle Propertie
What is uint16?