This file contains hidden or 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
| void main(List<String> arguments) { | |
| //NO PODEMOS INSTANCIAR UNA CLASE ABSTRACTA | |
| //var juego= Among_Us('Pepe','black'); | |
| var rosa = Impostor(name:'Rosalia', color:'Pink'); | |
| print(rosa); | |
| var celeste= Tripulante(name:'Cielo', color:'Blue'); | |
| print(celeste); | |
| celeste.report(); | |
| print(celeste.isAlive); |
This file contains hidden or 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
| void main(){ | |
| String cadena='hola'; | |
| print(cadena); | |
| //String cadena='''texto | |
| //multilinea'''; | |
| //print(cadena); | |
| } |
This file contains hidden or 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
| void main(){ | |
| bool activado =true; | |
| if (activado){ | |
| print('El motor esta encendido'); | |
| }else{ | |
| print('El motor esta apagado'); | |
| } | |
| //if (!activado){ | |
| // print('El motor esta apagado'); |
This file contains hidden or 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
| void main(){ | |
| //numero | |
| int numero=10; | |
| double p1=3.1416; | |
| var numero2 =1.0; | |
| print('$numero \n $numero2 \n $p1\n'); | |
| String UTP='Puebla'; | |
| print(UTP); |
This file contains hidden or 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
| void main(){ | |
| //Todo en dart es un OBJETO | |
| //Varianles | |
| //No es fuertemente tipado | |
| //FINAL Y CONST | |
| /*jklj | |
| * kjkj | |
| * kjklj | |
| * kklj |
This file contains hidden or 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
| void main(List<String> arguments) { | |
| //NO PODEMOS INSTANCIAR UNA CLASE ABSTRACTA | |
| //var juego= Among_Us('Pepe','black'); | |
| var rosa = Impostor(name:'Rosalia', color:'Pink'); | |
| print(rosa); | |
| var celeste= Tripulante(name:'Cielo', color:'Blue'); | |
| print(celeste); | |
| celeste.report(); | |
| print(celeste.isAlive); |
This file contains hidden or 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
| [6:42 p. m., 13/10/2020] Mich🖤: void main(List<String> arguments) { | |
| //NO PODEMOS INSTANCIAR UNA CLASE ABSTRACTA | |
| //var juego= Among_Us('Pepe','black'); | |
| var rosa = Impostor(name:'Rosalia', color:'Pink'); | |
| print(rosa); | |
| var celeste= Tripulante(name:'Cielo', color:'Blue'); | |
| print(celeste); | |
| celeste.report(); | |
| print(celeste.isAlive); |
This file contains hidden or 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
| [6:42 p. m., 13/10/2020] Mich🖤: void main(List<String> arguments) { | |
| //NO PODEMOS INSTANCIAR UNA CLASE ABSTRACTA | |
| //var juego= Among_Us('Pepe','black'); | |
| var rosa = Impostor(name:'Rosalia', color:'Pink'); | |
| print(rosa); | |
| var celeste= Tripulante(name:'Cielo', color:'Blue'); | |
| print(celeste); | |
| celeste.report(); | |
| print(celeste.isAlive); |
This file contains hidden or 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
| void main() { | |
| Asgardiano thor =Asgardiano() | |
| ..nombre='Thor' | |
| ..arma='Stormbreaker' | |
| ..padre='Odin'; | |
| thor.ataque(); | |
| thor.familia(); | |
| } |
This file contains hidden or 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
| void main (List<String> arguments) { | |
| var harry = Aprendiz(nombre:'Harry Potter', | |
| escuela: 'Colegio hogwarts de Magia y Hechiceria', | |
| casa: 'Gryffindor', | |
| edad: 17 | |
| ); | |
| print(harry); | |
| var luna = Aprendiz(nombre:'Luna Lovegood', | |
| escuela: 'Colegio hogwarts de Magia y Hechiceria', |
NewerOlder