I am pretty new to computing, especially to C++ and the functionality that it provides. Please be gentle with the bashing :)
I would like to ask if it is possible to declare a subclass object in another subclass. For example, can I have
class Shape {
...
};
class Square: public Shape {
..
};
class Cube: public Shape {
...
Square sq1;
...
};
I am asking this since there is a fatal error LNK2019 when I tried to compile, but my IDE is not highlighting anything specific.