Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Pushkar Kadam
3,823 PointsDifference between Object Oriented Programming and Other programming language and what is the use of Class in it?
I haven't understood the difference between OOP and simple programming language like C. Also, what is an exact definition of OOP and how can one simply explain it to a new programmer? What exactly are objects? I know that in OOP there are class, but what is the exact use of class? I have gone through some books, but I am not able to understand the technical definitions in the books. So, what is an easy way to remember OOP? Also, I have been using Class in programming, while using teamtreehouse, but when I start to write code on my own, I am not able to make out whether I have to use a class or not. So, how do we determine where to use Class and where not to.
1 Answer

Steven Parker
242,296 PointsThe "how" of OOP isn't too difficult for someone already experienced in programming with a non-OOP language. But it sounds like your introduction to OOP may have skipped over some of the fundamental concepts that support the "why" of it. In particular, abstraction, encapsulation, inheritance, and polymorphism. If these words don't evoke clear and specific concepts for you, then you may want to investigate each of them directly.
The decision of when "to use a class or not" will become automatic when you can easily identify the basic concepts that apply to the problem your program is intended to solve.