Just wondering here:
Since you declare chars and ints and so on just like classes and you can make arrays of them just like classes,
are they classes (or maybe structs)?
And if so does anyone know how the class looks?
Printable View
Just wondering here:
Since you declare chars and ints and so on just like classes and you can make arrays of them just like classes,
are they classes (or maybe structs)?
And if so does anyone know how the class looks?
I see what you're saying, but no, they're not classes. They're built into the language. Are they a machine or assembly equivalent of a class? Don't know that. Since their size can be machine dependant, I'd guess not.
They are not classes. The thing they have in common is that they are all types, a certain structure of data, and you declare instances of a type in the same way wether it' a class, stucture or a variable.