Current location: Hot Scripts Forums » Programming Languages » PHP » Classes: Yay or Nay


Classes: Yay or Nay

Reply
  #1 (permalink)  
Old 09-09-03, 09:01 AM
voodoo9055 voodoo9055 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: Alabama
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Question Classes: Yay or Nay

Could someone give me a legitimate reason why one would want to use a class in their scripts (whether it be ASP or PHP)? I read up on them, but I have yet to find a reason where I am forced to use a class.
Reply With Quote
  #2 (permalink)  
Old 09-09-03, 09:51 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
but I have yet to find a reason where I am forced to use a class.
Simple answer - You're not.
Reply With Quote
  #3 (permalink)  
Old 09-09-03, 06:09 PM
CMOT CMOT is offline
New Member
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
No reason at all! But it is nice and easy for us lazy folks to re-use your well written classes instead of hacking your code for ideas on how you did it... and then re-writing what you've done already.
Basically, classes are a nice way to share programs you've written. It does not make it easier for you to re-use code you've written, but it does for others using your code.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
language classes for VC++6.0 adruta C/C++ 3 06-05-04 08:39 AM
Object Oriented Programming Stefan PHP 29 12-30-03 11:22 AM


All times are GMT -5. The time now is 06:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.