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 |
Can we call server-side code (c# or vb.net code) from javascript?
What is tryparse?
Difference between direct type casting and using "as" keyword?
What is asp net in c#?
How will you deploy the dll file in gac?
How do I use the 'using' keyword with multiple objects?
What is uint64_t?
What is anonymous method in c#?
What is instantiating a class in c#?
can multiple catch blocks be executed for a single try statement?
Define encapsulation?
List down the commonly used types of exceptions in .net