-
-
Save manuelzapata/da5326f2880a5b3dc7ebd86b8e262e17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ConvertidorDatos { | |
constructor(formato) { | |
this.formato = formato; | |
} | |
convertir(datos) { | |
} | |
} | |
class ConvertidorXML extends ConvertidorDatos { | |
constructor() { | |
super('xml'); | |
} | |
convertir(datos) { | |
console.log('convirtiendo desde XML'); | |
//lógica para transformar desde XML... | |
} | |
} | |
class ConvertidorCSV extends ConvertidorDatos { | |
constructor() { | |
super('csv'); | |
} | |
convertir(datos) { | |
console.log('convirtiendo desde CSV'); | |
//lógica para transformar desde CSV... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment