The difference is that for
void func(const Class *myClass)
You point to a class that you cannot change because it is const.
But you can modify the myClass pointer (let it point to another class; this don't have any side effects to the caller because it's pointer is copied, it only changes your local the pointer copy)
In contrast
void func(Class *const myClass)
Now myClass points to a class that can be modified while you cannot change the parameter.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…