Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?
garyjohnson
14
Junior Poster
Recommended Answers
Jump to PostClasses are part of Object Oriented Programming concept (OOP). PHP first supported only traditional procedural programming style but with version 5 (and partly four) the OOP functionality was added. It has been mature for quite some time now and many functions have both versions (i.e.
Jump to PostYou will be able to use or implement either one of the common design patterns. My favorite is the observer pattern and Singleton pattern.
Benefits in writing codes in OOP
1. One or more classes can be derived from a base class. This is called inheritance. As the application grows …
All 7 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
garyjohnson
14
Junior Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
broj1
356
Humble servant
Featured Poster
veedeoo
474
Junior Poster
Featured Poster
<M/>
170
Why so serious?
Featured Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.