Given the following code:
#pragma once class B { public: B(void) { } ~B(void) { } };
I know I can also write this:>
I just wanted to add that when you use void after the parameters like function():void it is used to indicate that the function does not return a value.