Concepts of Objects

  • Instance of a class is called Object
  • Object is the real world object
  • In our example Class Car, we can create objects such as Maruthi, Benz etc
  • Objects have well-defined behavior
  • Other objects can use this behavior
  • Objects communicate with each other by message passing behavior. pogramitically, by invoking their method
  • When a particular java code is executed, Objects interact with each other to solve a problem