Re: HELP ! ! ! something simple . . . :D
- From: "Yoursef" <yoursef@xxxxxxxxx>
- Date: 29 Dec 2006 04:55:40 -0800
CorfuVBProgrammer a écrit :
New Question
if i like to use the instance from other method into the class how can
i do that ? ? ?
example:
class class_a
{
public function method_a()
{
}
}
class class_b
{
private $objInstance;
public function __construct()
{
$this->objInstance = new class_a();
}
public function method_t()
{
how to use the $objInstance methods into this method ? ? ?
}
}
thanks a lot
You can use objInstance methods like that :
class class_b
{
private $objInstance;
public function __construct()
{
$this->objInstance = new class_a();
}
public function method_t()
{
$this->objInstance->method();
}
}
.
- Follow-Ups:
- Re: HELP ! ! ! something simple . . . :D
- From: CorfuVBProgrammer
- Re: HELP ! ! ! something simple . . . :D
- From: CorfuVBProgrammer
- Re: HELP ! ! ! something simple . . . :D
- References:
- HELP ! ! ! something simple . . . :D
- From: CorfuVBProgrammer
- Re: HELP ! ! ! something simple . . . :D
- From: Kimmo Laine
- Re: HELP ! ! ! something simple . . . :D
- From: CorfuVBProgrammer
- Re: HELP ! ! ! something simple . . . :D
- From: CorfuVBProgrammer
- HELP ! ! ! something simple . . . :D
- Prev by Date: Re: HELP ! ! ! something simple . . . :D
- Next by Date: Re: HELP ! ! ! something simple . . . :D
- Previous by thread: Re: HELP ! ! ! something simple . . . :D
- Next by thread: Re: HELP ! ! ! something simple . . . :D
- Index(es):
Relevant Pages
|