Hi what's the difference of using obj.myprint or ptr->myprint? It works in the same way with no difference, right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi what's the difference of using obj.myprint or ptr->myprint? It works in the same way with no difference, right?

C++ classes

13th Dec 2018, 9:09 PM
Daniel
3 Answers
+ 2
Tecnically they have not differences beside be used with object and pointer respectively
13th Dec 2018, 9:14 PM
KrOW
KrOW - avatar
+ 2
👍👍👍
13th Dec 2018, 9:16 PM
KrOW
KrOW - avatar
0
Ok thanks
13th Dec 2018, 9:14 PM
Daniel