How do you implement Inheritance in dot net ?
Answers were Sorted based on User's Feedback
Answer / mohan kumar e.
By using ":" we can implement inheritance.
| Is This Answer Correct ? | 17 Yes | 1 No |
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 |
Answer / neelam sharma
by using : we can implement the inheritance
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / tarun kumar
In c# we include the " : "
here example
class class1
{
----
----
----
}
class class2 : class1
{
-----
-----
-----
}
| Is This Answer Correct ? | 5 Yes | 0 No |
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 |
What are value types in c#?
Explain concurrency with aop?
Can we override interface methods in c#?
Can hashset contain duplicates c#?
What is garbage collection? How to force garbage collector to run?
What is dll hell, and how does .net solve it?
What are the steps to create a webservice and consume it?
What is jit (just in time)?
What is difference between an Structure and Class?
How many variables do you need?
What are floating point numbers?
without modifying source code if we compile again, will it be generated MSIL again?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)