Skip to content

mfmarano/dds-qmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

"Qué Me Pongo" - Primera iteración

class Prenda {
  TipoDePrenda tipoDePrenda
  Material material
  Color color
  Color colorSecundario

  constructor(TipoDePrenda tipoDePrenda, Material material, Color color, Color colorSecundario = null)
    if (tipoDePrenda == null || material == null || color == null)
      throw NullException()
    this.tipoDePrenda = tipoDePrenda
    this.material = material
    this.color = color
    this.colorSecundario = colorSecundario
}

class TipoDePrenda {
  Categoria categoria

  constructor(Categoria categoria)
    this.categoria = categoria
}

enum Categoria {
  PARTE_SUPERIOR, CALZADO, PARTE_INFERIOR, ACCESORIO
}

enum Material {
  ALGODON, POLIESTER, CUERO
}

About

Ejercicio "Qué Me Pongo" para la materia Diseño de Sistemas en UTN FRBA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published