Fixing Errors In visual studio C++

"Class Type Redefinition Error"

For example you are creating a project which requires so many classes suppose there are five classes you make them and when you are going to execute your program you will see error "class type redefinition" to fix this error you have to only type #pragma once this will fix the error