I dont know a little think. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I dont know a little think.

What is mean of dot(.) in c# for example console.writeline or application.quit or debug.log And what is mean of (->) in c++ (i mean in programing games )

27th Dec 2019, 12:20 PM
DanFlamer
DanFlamer - avatar
3 Answers
+ 1
The dot is a way to access properties or methods of a given object. -> is the same as the dot, except that -> is used when we're dealing with pointers. Hope that was helpful!
27th Dec 2019, 1:43 PM
Gonçalo Magalhaes
Gonçalo Magalhaes - avatar
+ 1
Like Gonçalo Magalhaes said, think of the part before the dot as the "object"(not referring to the actual programming term for object) that the part after the dot comes from. kind of like a folder on your computer that has items in it, the items can either be executables that do something, or contain attributes that are necessary for some computations. like application.quit shuts down the app, or how something like display.getHeight() might return the current height of the active window.
27th Dec 2019, 5:20 PM
Robert Atkins
Robert Atkins - avatar
0
thx guys its usefull
28th Dec 2019, 5:54 PM
DanFlamer
DanFlamer - avatar