however, this is just a common convention, not a programming necessity. Another
commonly used naming convention is to use a lowercase
m
(for
member
) as the first letter
of the variable name.
The Implementation File
The header file has just defined what the class looks like.
You now need a separate file
that actually does the work. This is called the implementation file and has the extension
.cpp.
So, create a new file containing the following and save it as Flasher.cpp in the Flasher
folder:
There is some unfamiliar syntax in this file. The method
names are both prefixed by
Dostları ilə paylaş: