For account approval and general support, email migi@paidforumposting.com or go to https://discord.gg/HtwZ9YD

The Concept of OOP


Prof30

Recommended Posts

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.