Let us now look profoundly into what are objects. In the event that we consider this present reality, we can discover numerous entities around us, Cars, Humans, Dogs and several other. N fact, any real world entity can be modelled as an object. The one common thing between all these entities is the fact that they contain states and behaviours. On the off chance that we consider a dog, then its state is – breed, name and color. However, its behaviours includes eating habits and other characteristics like running and barking.
- Objects and Classes in java
- Classes in Java