How do you implement Inheritance in dot net ?
Answer Posted / senthil kumar
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 |
Post New Answer View All Answers
What is the property of class?
Can constructor have return type c#?
Is it possible to nest cfml conditional tags?
Explain what is copy constructor?
What is the function of .IsDescendent()?
What is the use of readkey in c#?
Explain the difference between a namespace and assembly name in .net?
If dll and exe files are same it means you can deploy both the files in gac?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
What is the default value of singleordefault?
What is the difference between list and arraylist in c#?
What are desktop applications examples?
how to prevent a class from being inherited in c#.net?
what is the difference between a struct and a class in c#?
How do you declare a method in c#?