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?s the difference between an interface and abstract class?

4 Answers  


Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio ?

1 Answers  


Are all methods virtual in c#?

0 Answers  


How do I create a dbml file?

0 Answers  


What is difference between c sharp and c#?

0 Answers  


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

2 Answers   Satyam,


What's the implicit name of the parameter that gets passed into the set method/property of a class?

0 Answers  


Why do we use yield in c#?

0 Answers  


What is short circuit logical evaluation?

1 Answers   TCS,


How can we make a thread sleep for infinite period ?

0 Answers  


What is use of FormBoarderStyle Propertie

0 Answers   MCN Solutions,


What is uint16?

0 Answers  


Categories