objects_example - matthew9510/Studies GitHub Wiki
Objects in terms of software allow us to express and model things that we have and use in real life.
Programmers have discovered that all real-world objects share two characteristics:
- State
- Behavior
This blueprint used to create objects in Java is called a class.
By creating an object in code that maintains its own state and presents its behavior for usage, allows programmers to hide how things are actually working from users of your object. This concept is called encapsulation.
Inner workings of objects are almost always hidden from the user, but its behavior is exposed and allows us to manipulate the state.
For example) When I drive my car, an object, I don't need to know how the engine works in order to get from place A to B.
Fields are usually used to express that state and methods help us express that behavior.
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic.
For a more in-depth description check out this link
Check out some of my code that goes alongside this object orientated programming paradigm by clicking this link
Checkout a more in depth description of Object Orientated Design Principles