Functions in OOP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Functions in OOP

Can someone explain how the members work in a class? eg. why we use something different from cin and cout for reading or writing values?

20th Dec 2016, 3:31 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
3 Answers
+ 5
Every object has properties and methods (something like unique IDs)...
20th Dec 2016, 3:33 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
Yeah..but could you please elaborate on their syntax? Thanks!
20th Dec 2016, 5:32 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
+ 4
cin, cout writes only on the console
20th Dec 2016, 7:50 PM
Valen.H. ~
Valen.H. ~ - avatar