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?
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.
Truth is a malleable commodity - Dick Cheney
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.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.