How do you implement Inheritance in dot net ?

Answer Posted / tarun kumar

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

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

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are windows services?

721


How do you convert byte array to hexadecimal string, and vice versa?

767


Is c# or c++ better for games?

640


How can I check the type of an object at runtime?

726


Explain how to implement an object pool in c#.net

708


Explain About remoting and web services. Difference between them

728


How to add controls dynamically to the form using c#.net.

658


Is a games console a computer?

678


Which class comes after the SortedList class?

746


Define parsing? Explain how to parse a datetime string?

717


What is the purpose of constructor in c#?

625


Why do we need dependency injection in c#?

668


Why main is static in c#?

773


Can we overload the main method in c#?

676


Can we make a class private in c#?

699