Help me to Understand Classes in OOP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
economists
Forum Newbie
Posts: 2
Joined: Wed Dec 14, 2016 1:08 am

Help me to Understand Classes in OOP

Post by economists »

Will somebody help me understand the classes in OOP. I know basics of it as

class human {

private $name;
function setname ($name){
}
function getname (){
}
}

or suggest me easy to understand books.
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: Help me to Understand Classes in OOP

Post by pbs »

User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Help me to Understand Classes in OOP

Post by Celauran »

Is there something specific you're struggling to understand? Some concept you don't get? For OOP in general, Sandi Metz's Practical Object Oriented Design in Ruby is probably the best book I have encountered on the subject.
economists
Forum Newbie
Posts: 2
Joined: Wed Dec 14, 2016 1:08 am

Re: Help me to Understand Classes in OOP

Post by economists »

Thank you So much. :P
Post Reply