Can we inherit an abstract class in another abstract class.
If no why and If yes how..?
Answer Posted / sudipta
Yes, we can inherit an abstract class in another abstract
class.
Suppose we have two abstract class.one is parent and
antoher is child.
namespace ClassCollection
{
abstract class Absparent
{
public abstract void Method1();
}
abstract Class AbsChield: Absparent
{
public abstract void Method2();
}
public Class ImplementedClass: AbsChield
{
here we can get two methods of abstact class
(Absparent,AbsChield)
public override void Method1()
{
}
public override void Method2()
{
}
}
}
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Different between method overriding and method overloading?
Explain namespaces in c#.
In c#, what will happen if you do not explicitly provide a constructor for a class?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Can we make a class private in c#?
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.
Is c# different than c++?
What is yield c#?
What is the difference between firstordefault and singleordefault?
What is ienumerable t in c#?
What are jump statements in c#?
4. Describe the process when we send a request URL? And who is responsible for that?
What is property in c#?
What are the different ways of method can be overloaded?
What are the drawbacks of extending an interface as opposed to extending a class?