0
More on classes (Selection operator)
While I was solving a problem, an example shows MyClass.h has myPrint{} but not defined. Instead, the function is defined at MyClass.cpp. Is it a bad practice to define a function within a header file? Why did example only declare and not define the myPrint?
1 Answer