[PyKDE] Re: [PATCH] Abstract methods cause derived classes to be marked abstract

Christophe Cavalaria chris.cavalaria at free.fr
Fri Oct 13 21:20:05 BST 2006


Matt Newell wrote:

> 
> If class A has an abstract method, it is marked as an abstract class. 
> This is
> good.  If class B inherits from class A, but doesn't have any abstract
> methods of it's own, it is still marked as abstract, that is not good.  A
> class should only be marked abstract if it directly has an abstract
> method, or is marked abstract with /Abstract/.
> 
> Patch attached.
> 
> Matt

What language is that? In C++, if A has an abstract method called foo and B
inherits from A without defining foo, then B is abstract too.





More information about the PyQt mailing list