There's a misunderstanding of the term. https://msdn.microsoft.com/ru-ru/library/x9afc042.aspx ♪ I'm afraid you should start studying the PLO framework. https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%BD%D0%BE-%D0%BE%D1%80%D0%B8%D0%B5%D0%BD%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D0%BE%D0%B5_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5 later https://msdn.microsoft.com/ru-ru/library/67ef8sbd.aspx ♪Now let's try to deal with your question. What do you mean? If you still want to build a hierarchy of classes, you want to do it wrong. It's obvious that if the Vulcan class is a clarification of the Automobile class, it's not fair to say. I mean, the program doesn't care, but from a human perspective, it just doesn't make sense. How is the hierarchy of the comas? Just like life! For example, you have a class called Automobile, a production class from which Moscow is. Moscow inherits all of his attributes from the Automobile, but it also has its own, unique (I don't know, the method of getting gasoline AI-76 in the salon). Moscow has another class, Moskowicz-412, which is also Moscow (and consequently a vehicle), but has a number of additions, such as a fashion design and a richer market.So class hierarchy is a tree. clarifications♪ The notion of a wolf, as you hope, you know, can't clarify the concept of an automobile. Read the details of the classes on the references I made above.But I may have misunderstood you, and you need some kind of production log you see as a tree? For example, there are specific wolves and flaws that have time of production, which in turn affects the production of the engine that affects the time of the vehicle production?There are possible implementation options. For example, you might have a product class:public class Product
{
public float ProductionTime;
public string Worker;
}
On the basis of the product, every detail can be described, as well as a car. However, please note that all these classes will not inherit from the car (e.g., they will all be derivative of the product.At the same time, the engine class will contain the Vulcan and Porsche fields and have its method of calculating the production vermin.Automobile class is to maintain the fields of Engineer, Carburator and Raul, etc.I don't bring the code because, frankly, I don't see much of that. Don't be insulted, but in my opinion, it's early for you to do so, see the beginning of the answer.