Learn object-oriented programming
Object-oriented programming (OOP) is a large topic that is covered by many books and computer science courses. But you don't necessarily need to spend all that time to get a basic understanding. Here are some materials that can help you get started.
Introduction to Object-Oriented Programming (MIT Open Courseware)
Introduction to Programming Methodology (Stanford on iTunes U)