KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you declare a class property as an object? I tried: public $objectname = new $Object(); But it didn't work. Additionally, why should you do it like that? Isn't it better to just instantiate that object and just use its members?
Tags (comma-separated)
Save Edits
Cancel