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


Please Help Members By Posting Answers For Below Questions

Different between method overriding and method overloading?

488


Explain namespaces in c#.

590


In c#, what will happen if you do not explicitly provide a constructor for a class?

519


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

508


Can we make a class private in c#?

504






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.

2504


Is c# different than c++?

518


What is yield c#?

497


What is the difference between firstordefault and singleordefault?

480


What is ienumerable t in c#?

487


What are jump statements in c#?

503


4. Describe the process when we send a request URL? And who is responsible for that?

1488


What is property in c#?

537


What are the different ways of method can be overloaded?

458


What are the drawbacks of extending an interface as opposed to extending a class?

468