Sometimes the makers of tutorials give an example to purposefully trick the reader. This leads to them learning a distinction between two things. This example is very tricky, because being that a class is a type, you can typedef class, but for example can you typedef the identifier, which is supposedly also a type. Heres the example
As you can see struct and class were typedefined, but it seems the type was never used, because when Student and Country were initialized there still used type struct and class. So, can I assume that those new typedefs were never used, and that if we wanted them to be used we could have declared class Student like this (Student Student). Yes I know that sounds wierd, but later you can see the type PStudent is defined as a pointer to type Student. And knowing you cant point to an identifer of struct, I must assume that the earlier declarations of
typedef struct Student;
typedef class Country;
were never used.
Plz any help would be greatly appreciated, if i am wrong let me know.