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

Is friend a constructor?

508


What does m mean in decimal c#?

491


What is the compiler of c#?

487


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

548


What is the components of window?

498






What is the use of partial methods?

567


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

523


What framework is used for performance testing/load testing?

1480


Is c# a strongly-typed language?

541


What is c# most used for?

560


Why do we need structs in c#?

444


Explain namespaces in c#.

582


How do you create partial methods?

551


Define using statement in c#?

513


if you do have a stack overflow profile.what is your ranking?

1480