+ 1
What is actual need of class
3 ответов
+ 8
To create objects (basic concept of OOP : Object Oriented Programming)(something more advanced than arrays...)
+ 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.
+ 1
Simply put PHP can be used to model real world objects thats what makes it so cool :)