Ver Mensaje Individual
Antiguo 13-feb-2008, 15:15   #13 (permalink)
GatorV
$this->role('moderador');
GatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradableGatorV es realmente agradable
 
Avatar de GatorV
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ags/
Mensajes: 16.068
Re: Duda POO en PHP con cierta herencia

Asi es, cuando tu usas :: estas accesando a un atributo de la clase, tu puedes usarlo para llamar a funciones estaticas de una clase, o a constantes, o a variables estaticas:
Código PHP:
NombreClase::hazAlgo();
NombreClase::VALOR_CONSTANTE;
NombreClase::$atributoPublico "hola"
Saludos.
__________________
Blog Web
GatorV está desconectado   Responder Citando