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?

14th Jan 2018, 4:45 PM
박희ìȜ
박희ìȜ - avatar
1 Answer