logo

Crowdly

Browser

Add to Chrome

Crea una classe anomenada Cuina que tingui les següents característiques: ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Crea una classe anomenada Cuina que tingui les següents característiques:

  1. Un atribut ingredient que s'inicialitza en el constructor.
  2. Una funció mostrar_ingredient que imprimeixi el valor de ingredient.

Després, crea una instància de la classe Cuina, assigna-li un ingredient i crida la funció mostrar_ingredient per imprimir-lo.

Pregunta:

Quina de les següents opcions implementa correctament la classe Cuina i crida la funció per mostrar l'ingredient?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on e-aules.uab.cat?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome