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 trialammarkhan
Front End Web Development Techdegree Student 21,661 PointsHow to practice OOP without a project?
In Object Orientated Programming PHP, there is no project to follow or practice on. How can i use it to a project so as i go i get better at it?
2 Answers
Dane Parchment
Treehouse Moderator 11,077 PointsJust create your own projects that can utilize the OOP be creative just think up some things that you believe may require more than one class to create here are some examples:
- Create a program that calculates the area of different types of shapes (Triangles, Circles, Squares, Cubes, etc.) for an even bigger challenge (and if you like the math) maybe find the area for a generic shape with with different side numbers.
- Create a Bank simulator that allows a customer to create an account and either deposit or withdraw money and allow a teller to manage accounts letting him delete and edit the information of customers.
- For fun and if you know mysql, html, css and have PHP knowledge try making an object oriented login and register system.
I know that creating projects is probably not what you want to here but it is the most effective way to not only learn OOP but also better your programming skills.
thomascawthorn
22,986 PointsLaravel is an object oriented framwork, and there's videos here on Treehouse - Yay! Check it out