You have a beautiful garden at home. On Sunday, you start budding your rose plant to make few more samples of rose plants to plant in the garden. Can you categorize how this scenario could be represented by classes and instances?

Respuesta :

Answer:

It is possible to make this categorization as follows:

Roses = Class

Rose samples = instances

Explanation:

In a very direct and objective way, we can state that classes are models that define how a given situation will be handled, which methods will be used to manage it and the objectives that will be established in that situation. Instances, on the other hand, are elements taken from the interior of classes, which contain factors that make them up. Based on this, we can determine that, in the case of the above question, roses are classes and rose samples are instances.