![]() |
|
|
|
|
1
3rd July 16:32
External User
Posts: 1
|
Hi,
i have been using php for 1 year till now, and i never felt the need to use an object. Can some one tell me where and why should i use the object oriented coding in PHP ? I meen i have been able to do all the things i want without using any object (I know that objects could make my code more structured). I have read the php docs, there's no inheritance (as far as i've read) ... I would really appreciate any advice. Thx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
|
|
|
2
3rd July 16:32
External User
Posts: 1
|
- There is inheritance.
- There is polymorphism - There is encapsulation These things are often a matter of preference and can to some degree or another be cooked without objects, albeit not as elegantly. Cheers, Rob. -- ..------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' |
|
|
|