The basic idea of OOP is quite simple: you write classes that represent objects in the problem domain. For example, if you're writing a program for car rental billing, you will create objects to represent cars, customer accounts, invoices, things like that.
Object Based Learning (OBL) is a student-centred learning approach that uses objects to facilitate deep learning. Objects may take many forms, small or large, but the method typically involves students handling or working at close quarters with and interrogating physical artefacts.
Now, there are four fundamental concepts of Object-oriented programming – Inheritance, Encapsulation, Polymorphism, and Data abstraction.
I've been doing software development with OO for over 20 years now, and I can tell you that looking at other peoples code is more often than not going to teach you how to do procedural programming in an object oriented language.
What I would recommend is to use the following techniques, which if applied liberally, will force you to use OO techniques, even though you may not yet be aware of them.
If you follow these guidelines, you will definitely be producing object oriented code, and probably at a much higher level of proficiency than many experienced developers.
Finally, avoid injection - i.e. Spring, Unity, etc!! There are probably a handful of valid cases for using injection - most uses arise out of a lack of object oriented design experience. As a guideline for whether to inject or not, consider how often what you are thinking of injecting is likely to change. In many, many cases, I find that what is being injected will never change - in these cases, the only thing being injected is pure overhead.
Good luck!
It takes time.
Moving from procedural programming to object oriented is difficult. These days, many people start with object oriented, so they don't struggle with this paradigm change.
read one of the following book
enjoy
PDF LINKS
1) Head First Object-Oriented Analysis and Design
Head First Object-Oriented Analysis and Design.pdf
2) Head First Design Patterns
Head First Design Patterns.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With