Mark Captain wrote:The bold word, Why is it not a data type like I have been learning.
It is.
If, as John says, they are classes, then they're a very
specific data type; but something like
Stock could just as easily be an interface, in which case it is most assuredly a type, in any sense of the word.
Winston