Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- */
- class Escuela
- {
- public function crear_alumno($alumno)
- {
- # code...
- }
- public function crear_grupo($grupo)
- {
- # code...
- }
- public function agregar_a_grupo($alumno)
- {
- # code...
- }
- }
- $escuela = new Escuela();
- $alumno = $escuela->crear_alumno('miguel');
- $grupo = $escuela->crear_grupo('a');
- $identidad = $escuela->agregar_a_grupo($alumno);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement