How do you implement Inheritance in dot net ?

Answers were Sorted based on User's Feedback



How do you implement Inheritance in dot net ?..

Answer / mohan kumar e.

By using ":" we can implement inheritance.

Is This Answer Correct ?    17 Yes 1 No

How do you implement Inheritance in dot net ?..

Answer / senthil kumar

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

How do you implement Inheritance in dot net ?..

Answer / neelam sharma

by using : we can implement the inheritance

Is This Answer Correct ?    8 Yes 1 No

How do you implement Inheritance in dot net ?..

Answer / tarun kumar

In c# we include the " : "
here example
class class1
{
----
----
----
}

class class2 : class1
{
-----
-----
-----
}

Is This Answer Correct ?    5 Yes 0 No

How do you implement Inheritance in dot net ?..

Answer / mahesh babu ummaneni

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

Post New Answer

More C Sharp Interview Questions

What is hierarchical inheritance in c#?

0 Answers  


Can we inherit class that contains only one private constructor?

0 Answers  


What is the difference between ref and out parameters in c#?

0 Answers  


What is global asax in c#?

0 Answers  


Can you inherit from a static class in c#?

0 Answers  






Can you inherit from multiple classes in c#?

0 Answers  


What is difference between override and new in c#?

0 Answers  


Can you see a loop recorder?

0 Answers  


What is private protected in c#?

0 Answers  


How do I start a program in c#?

0 Answers  


What is the use of constructor in c# with example?

0 Answers  


Why do we use interfaces in c#?

0 Answers  


Categories