Page 1 of 1

Help me to Understand Classes in OOP

Posted: Tue Dec 20, 2016 11:36 pm
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.

Re: Help me to Understand Classes in OOP

Posted: Tue Dec 20, 2016 11:51 pm
by pbs

Re: Help me to Understand Classes in OOP

Posted: Wed Dec 21, 2016 6:46 am
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.

Re: Help me to Understand Classes in OOP

Posted: Thu Dec 22, 2016 4:35 am
by economists
Thank you So much. :P