Medium
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: W3D TeamStatus: PublishedQuestion passed 871 times
Edit
0
Community Evaluations
Aurore
31/07/2024
Bonjour, je constate que certaines questions de ce QCM sont modifiables sans avoir consulté sa correction, alors que d'autres non, ce que je trouve assez étrange mais pourquoi pas. C'est le cas de cette question, pour laquelle il me semble que toutes les réponses sont valides sauf "public Platane(int nombre){this.nb_branche=type;}", mais qui m'annonce "Réponse partiellement correcte".
Les deux propriĂ©tĂ©s Ă©tant protected, elles sont censĂ©es ĂȘtre accessibles et modifiables depuis la classe Platane.
2
How to declare a SortedList<Key,Value> in C#2
What is the new syntax for creating an object in C# 9.0?3
Initialize a new Vehiclue object containing a string field in C#3
Write a C# class with a private int age field and getter and setter methods for it.3
An event in an ASP.NET application:3
The PFX Framework:5
Simple inheritance between a parent class and a child class in C#