How do you implement Inheritance in dot net ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are value types and reference types?

759


What is the main purpose of linq?

662


What is Implicit conversion in C#?

783


Can constructor be private c#?

644


What is a must for multitasking

744


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

696


Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

695


Differentiate between response.expires and response.expiresabsolute?

735


Tell us something about static linking and dynamic linking?

718


Why do we use interfaces in c#?

703


What is an escape sequence?

695


Explain how can I get around scope problems in a try/catch?

661


How to assign Null value to Var?

742


What is the difference between finalize() and dispose()?

674


What is type keyword in c#?

696