What is an object in Java?
?????????????? ??????????????????
???????????? ???????????????? | ???????????????? ?????????????????? | ???? ?????????????? | ???????????? **?? ???????? ?????? ?????????????????? ?????????????????? ?? **
What is an object in Java?
An entity that has state and behaviour is known as an object e.g., chair, bike, marker, pen, table, car, etc.
It can be physical or logical (tangible and intangible). The example of an intangible object is the banking system.
An object has three characteristics:
1] State: represents the data (value) of an object.
2] Behaviour: represents the behaviour (functionality) of an object
such as deposit, withdraw, etc.
3] Identity: An object identity is typically implemented via a unique
ID. The value of the ID is not visible to the external user. However,
it is used internally by the JVM to identify each object uniquely.
For Example, Pen is an object. Its name is Reynolds; colour is white,
known as its state. It is used to write, so writing is its behaviour.
An object is an instance of a class. A class is a template or blueprint
from which objects are created. So, an object is the instance (result) of a class.
Object Definitions:
Book Link: https://www.amazon.in/dp/B0BR3XLM42?ref_=cm_sw_r_apann_ts_KFFPZD02WKWGBECG71BF
Software Engineer | Expert in React, React Native, Firebase, Redux, & ServiceNow | Building Scalable and Innovative Solutions
2 年Can I get a copy
I help founders and coaches build trust-driven strategies to 10x their businesses | Helped clients achieve 30M+ impressions | 15+ calls booked for clients in just 7 days | Ghostwriter
2 年Nice
1 MILLION+Instagram|Linkedin Top Voice|2xTEDx&Josh Talks|Executive Presence Coach |Communication & Soft skills |Faculty Masters’Union Command presence:Embody credibility in VISION, VOICE&VERBIAGE Drive Influence & Impact
2 年Thank you for sharing
Software Engineer
2 年Thanks for sharing