Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-07-2009, 03:10 PM Acces identifier
Novice Talker

Posts: 12
Name: Dave Petric
Trades: 0
we all know that php is object oriented. tell me if i am wrong. the thing which i want to know is that how can we make objects private in php. like they can't be used anywhere else.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
plg007 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2009, 03:38 PM Re: Acces identifier
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well you are in charge of where they can and will be used as the programmer.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-07-2009, 03:50 PM Re: Acces identifier
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
As far as I'm aware, php does not support nested class, so a private class would be useless.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 12-07-2009, 09:24 PM Re: Acces identifier
Novice Talker

Posts: 12
Name: Dave Petric
Trades: 0
then how is the php object oriented?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
plg007 is offline
Reply With Quote
View Public Profile
 
Old 12-07-2009, 11:23 PM Re: Acces identifier
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by plg007 View Post
then how is the php object oriented?
Very few languages are pure instances of any paradigm. Even Java deviates from the object oriented paradigm slightly. PHP supports object oriented programming through the use of classes, but the programmer is not forced to do so.

Additionally, the lack of certain features available in other OO languages does not exclude PHP from the paradigm.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 12-08-2009, 04:35 AM Re: Acces identifier
lazcorp's Avatar
Average Talker

Posts: 22
Name: Martin
Trades: 0
May be the solution is class with only private functions and vars
lazcorp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Acces identifier
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17447 seconds with 12 queries