-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodulos.ch
91 lines (71 loc) · 1.63 KB
/
modulos.ch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
class Animal {
visible numeral id;
}
class Perro under Animal {
visible numeral edad;
hidden numeral hijos;
hidden char chefe() {
char c;
c = 'c';
return c;
}
}
class Persona {
hidden string nombre;
visible numeral edad;
hidden numeral hijos;
visible char dia;
visible bool esEstudiante;
visible string apellido;
hidden Perro : puchi;
hidden numeral auxEdad(numeral ee) {
this.edad = ee;
edad = ee;
return edad;
}
visible numeral getEdad(numeral tre, string chefe, numeral due) {
numeral e;
Perro : puchi2;
e = auxEdad(this.edad);
return edad - this.edad + puchi.edad;
}
visible without setNombre(string nombre, char ch, numeral nume) {
numeral tre;
string loco;
numeral cuatro;
this.nombre = nombre;
return;
this.nombre = nombre;
}
visible bool setEdad(numeral e) {
edad = e;
}
}
class Estudiante under Persona {
visible numeral materias;
hidden Perro : nicky;
hidden Persona : maestro;
visible real setMaterias(numeral m) {
string loca;
numeral num;
m = 56 - 45 * 1 + 1;
this.materias = m;
}
visible string getMaterias() {
string wow ;
wow = "chefe";
}
}
class Amigo under Estudiante {
visible numeral ido;
}
class main {
hidden Persona : yo;
hidden Persona : pucho;
visible without main () {
numeral edad;
yo.setEdad(23);
edad = yo.getEdad(3, "2", 2) + 1 * 3 + pucho.edad;
output(edad);
}
}