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 use of "default" and "Using" keyword?
What?s the top .NET class that everything is derived from?
1)what is difference between char and varchar in sql server 2005 2) what is composite key and candidate key 3) what is temporary table and derived table 4) how to calculate difference between two dates
Can you declare struct members as protected?
Where do you add an event handler ?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What is a generic method?
Is c# good for beginners?
Is xml tags are case sensitive?
Is Facebook a desktop application?
What are the properties of a string class?
Is comparator a functional interface?
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)