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

Can we call server-side code (c# or vb.net code) from javascript?

0 Answers  


What is tryparse?

0 Answers  


Difference between direct type casting and using "as" keyword?

1 Answers   TCS,


What is asp net in c#?

0 Answers  


How will you deploy the dll file in gac?

0 Answers  






How do I use the 'using' keyword with multiple objects?

0 Answers  


What is uint64_t?

0 Answers  


What is anonymous method in c#?

0 Answers  


What is instantiating a class in c#?

0 Answers  


can multiple catch blocks be executed for a single try statement?

0 Answers   Siebel Systems,


Define encapsulation?

0 Answers   Siebel,


List down the commonly used types of exceptions in .net

0 Answers  


Categories