+ 4
Member functions (methods of a class) without creating the objects?
In CPP a lot of the manipulators are used without creating an object of the class (e.g:- endl) ....How is it possible?
1 Réponse
+ 6
They are declared static so are class wide methods or properties. You only need an instance for non-statics.