Ok Juha thanks. And what about the ifdef for that missing method? ReferenceNeeded
Sent from Mailspring (https://link.getmailspring.com/link/local-0739f840-40a8-v1.1.3-27dcee2f@PC-i7/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=lazarus%40lists.lazarus-ide.org), the best free email app for work On feb. 8 2018, at 3:59 pm, Juha Manninen via Lazarus <[email protected]> wrote: > > On Thu, Feb 8, 2018 at 5:02 PM, lainz via Lazarus > <[email protected]> wrote: > > My question is *if the method still will be called instead of the LCL one in > > 1.9 without using override*. I know this is a basic of OOP but I need a bit > > of help because I never use virtual and overload. > > > Virtual methods are polymorphic so a caller does not need to know the > actual type of an object. The correct virtual / overridden method is > always called. > I guess your code knows the exact type (BGRAImageList) and can use it. > Thus the correct method is called even if it is not virtual. > > Juha > -- > _______________________________________________ > Lazarus mailing list > [email protected] > https://lists.lazarus-ide.org/listinfo/lazarus >
-- _______________________________________________ Lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
