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 |
wt is namespace? wt is the use?
Which sorting algorithm is best?
what is Encapsulation?
What is the difference between public, static, and void?
Can constructor be private c#?
What is datareader c#?
How do you create empty strings in c#?
Can you declare a class or a struct as constant?
Can we set image Source dynamically using C# in WPF application?
What is the default value of string in c#?
Explain the process of inheriting a class into another class?
Explain what are the steps for creating clr trigger?
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)