Connecting Tech Pros Worldwide Help | Site Map

syntax? how to declare a member of a class which is itself a class

  #1  
Old August 23rd, 2007, 04:15 PM
D_a_n_i_e_l
Guest
 
Posts: n/a
how to declare a member of a class which is itself an object?

class cA
{
private $blah;
public function foo()
{
return blah;
}
}

class cB
{
private cA $a; // I want this to be of type class A
}

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax? how to declare a member of a class which is itself a class D_a_n_i_e_l answers 3 August 23rd, 2007 04:35 PM
Syntax for template for member function of multiple classes? Howard answers 6 January 12th, 2007 10:25 PM
Beating a dead Horse: Which Language cfmortgagepro@yahoo.com answers 114 November 21st, 2005 07:39 PM
Beating a dead Horse: Which Language cfmortgagepro@yahoo.com answers 106 November 17th, 2005 06:06 AM