It depends on what you are modelling. Most of the time, if you're thinking about a concrete problem domain, it will be clear to you whether there is an "is a" or a "has a" relation between the things that you are modelling.
For example, suppose that you want to model a car. Clearly, a car has an engine, wheels, etc. And a car is a transportation device, etc.