+ 1

What is actual need of class

23rd Dec 2016, 8:04 PM
Riyaz Sheikh
Riyaz Sheikh - avatar
3 Réponses
+ 8
To create objects (basic concept of OOP : Object Oriented Programming)(something more advanced than arrays...)
23rd Dec 2016, 8:36 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
object is a basic entity of any modern object oriented language without it oop will be meaningless. since the oop is based on concept of object, we need class as a body for object which contain its identity, behaviour, properties. Also class is like blueprint to create objects as well as only using class we can build objects....class contains all the components, materials to build the real world objects.
24th Dec 2016, 7:32 AM
Sumit Urkude
Sumit Urkude - avatar
+ 1
Simply put PHP can be used to model real world objects thats what makes it so cool :)
25th Dec 2016, 7:15 PM
Ian Croasdell
Ian Croasdell - avatar