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 is the difference between system.string and system.text.stringbuilder classes?
Explain the OOPS concept in C#?
can we assign null value to value type in c#?
12 Answers Idea, Microsoft, Wipro,
What do you mean by string objects are immutable?
What are the ways to deploy an assembly?
Explain the various types of classes used in c#?
What is Wrapper class in dot net?
What is difference between abstraction and encapsulation in c#?
How to create multi-dimensional array?
What is the use of main method in c#?
How can we sort the elements of the array in descending order?
What is Implicit conversion in C#?
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)