Question from the C# - Fundamentals test

Write the constructors of a public class Platane that includes a protected int nb_branche field and inherits from a public Arbre class including the protected string type_arbre field.

Hard

A public class Platane includes a protected int nb_branche field and inherits from a public Arbre class including the protected string type_arbre field. The examples of constructors of this class Platane are:

Author: MaximeStatus: PublishedQuestion passed 559 times
Edit
-1
Community Evaluations
developer avatar
Mickael
06/04/2023
type_arbre est protected, il est donc accessible par le constructeur platane. Ce n'est certainement pas le constructeur le plus pertinent mais ce n'est pas faux.