+ 1
what is the difference in class and pointers?
2 ответов
+ 1
both are completely different.. class smjas different function and objects in it and pointer stores the location of any variable.
+ 1
A class is a blueprint for an object, an object can contain datatypes (such as primitives (integers, doubles) and other objects) and methods (functions).
A pointer is a datatype (I think) pointing at a memory location (on the computer). The memory location usually cointains another datatype. So from a pointer 'a' you can either access the memory locations adress its pointing at (a) or the datatype stored at that adress (*a). &a would return the adress where the pointer is stored.