shumatech / BOSSA

BOSSA is a flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers. The motivation behind BOSSA is to create a simple, easy-to-use, open source utility to replace Atmel's SAM-BA software. BOSSA is an acronym for Basic Open Source SAM-BA Application to reflect that goal.
http://www.shumatech.com/web/products/bossa
BSD 3-Clause "New" or "Revised" License
371 stars 250 forks source link

Understanding source code (virtual void) #175

Open gj508 opened 11 months ago

gj508 commented 11 months ago

Hello i'm a student trying to understand c++ better by looking into source code. I have a question about one of the function used in this and other applications with multiple classes.

in Flash.h example; virtual void writePage(uint32_t page) = 0; this one is called in; Flasher.cpp on line 143 _flash->writePage(pageOffset + pageNum);

a virtual void is a void that reverance a other void with the same name and parameter from a different header. in this project there are four; void writePage(uint32_t page); does this virtual void direct to all four voids or just one.

thank you in advance for reading my problem.