08-21-2009, 05:19 PM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Jul 2009
Posts: 5
Thanks: 0
|
Quote:
Originally Posted by ioan1k
I don't really understand what you are saying ...
|
I'm talking about Encapsulation and Data Hiding, where Encapsulation is the ability to group attributes and methods inside a single class/object and Data Hiding is the ability to access control to class data(attributes) and methods from external users(other objects) ... as rule of thumb, access to class/objects functionalities should be done through its public interfaces, aka public methods ... attributes should all be private/protected for good Data Hiding to work ... obs. class's public interfaces not to be confused to the class construct named <<Interface>>
I'm new to PHP, but not to OO so I'm checking to see if my post regarding Encapsulation and Data Hiding in PHP was right ... I think so ... according to 'Enfernikus' last post
|
|
|
|