Consider 2 classes 'Animal' and 'Dog', where 'Dog' is a subclass of 'Animal'. Which one of the following two diagrammatic representations are correct?
Representation 1 (up arrow):
This shows that 'Dog' extends 'Animal' and is more specific (narrower) than 'Animal'. Moreover 'Dog' points to it's super class.
Representation 2(down arrow):
This shows that 'Dog' has at least all the attributes (ignoring access specifiers) of 'Animal'. It makes me think that these attributes have been imported into 'Dog' and that 'Dog' has come from 'Animal'.
Which one would be right if I were to draw on a paper?