Prof30 Posted September 12, 2017 Report Share Posted September 12, 2017 Object Oriented Programming (OOP) is a design pattern. You can create variables without classes of course, there's no rule against that but when you're working with OOP, you have to compartmentalize and keep everything organized, which means you can't have variables flying around without a context. You can't truly work with OOP and not create variables, variables in OOP are seen as properties that belongs to a class. The main point here is, we create and utilize classes to implement OOP and it's concepts, this let us model real world problems appropriately. The highlights of OOP brings some sanity into our code structure, these includes but not limited to: 1. Code reusability 2. Easier Code maintainability 3. Inheritance 4. Encapsulation 5. Abstraction 6. Polymorphism Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.