← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH 0/4] Use of "virtual" and "override" keywords

 

>It is redundant (you cannot override a non-virtual function)

a() and b() in struct c in the example are virtual in both parents.


override is simply a check to tell the compiler you intend to override
a() and b() from parent classes.

If you put virtual blah() in struct C without override, you can be
creating a new virtual function if the signature does not match and
its completely valid.


Follow ups

References