Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding source code (virtual void) #175

Open
gj508 opened this issue Dec 8, 2023 · 0 comments
Open

Understanding source code (virtual void) #175

gj508 opened this issue Dec 8, 2023 · 0 comments

Comments

@gj508
Copy link

gj508 commented Dec 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant