+ 8
challenge explanation
I want to ask about myclass() invocation is this an object creation? if it is then is there any similar to that in basic types like int or something more simple? https://code.sololearn.com/cSDCry612CuJ/?ref=app
14 Answers
+ 6
I appreciate your help thank you from all my heart đ I got it
+ 4
I knew the answer and I specified what I want from this question
+ 4
I knew all of this but I don't know what is exactly the meaning of myclass(5) in main()
+ 4
~ swim ~ could you help me pleaseđ
+ 4
sneeze
done.
+ 3
sneeze go to sleep and we will resume tomorrow
+ 3
sneeze
I am sorry you are waiting me for 3 days
I understood what is happening
thanks
I asked to ensure that myclass is an object creation and I got my answer
+ 2
8 I suppose
+ 1
See making a class comes In something called as Object Oriented Programming and yeah it is a kind of DataType but it's a different thing then the basic one like int,
A class is a template of objects mean a class will/can contain many DataTypes in it like Int and on other side for eg - int is a command to register 4 bytes of memory.
+ 1
Can you copy this code to the playground. Debugging it from text is difficult.
+ 1
Thanks
+ 1
https://code.sololearn.com/cMiWu7U9hJeu
I added some lines of code to follow the code path.
Seems to work fine.
Can you explain you question more ?
(need to go to sleep now)
0
Well done. Keep Asking, keep Coding