Is all abstract class methods should be implemented in its immediate derived class in c# ?

Posted by Kasani007 under C# on 8/11/2014 | Points: 10 | Views : 451 | Status : [Member] | Replies : 3
Is all abstract class methods must be implemented in its immediate derived class in c# ? or We can implement in other classes where they are needed?




Responses

Posted by: Bandi on: 8/11/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Yes. When a class inherits from a abstract class, the derived class must implement all abstract methods of a abstract class..

http://www.rapidprogramming.com/tutorial/Abstract-Method-in-C-Sharp-55

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: kgovindarao523-21772 on: 8/11/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
Its not mandatory for all abstract class methods must be implemented in its immediate derived class .
you can implement them where ever needed in derived classes. but at final make sure all abstract methods should be implemented

Thank you,
Govind

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi_Patil on: 8/11/2014 [Member] Starter | Points: 25

Up
0
Down
Yes, all abstract methods must implement into immediate derived concrete class. if immediate class does not implement all abstract methods then that class also will be abstract class.

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response