What is object and class by real world example?

Difference between object and class No.Object1)Object is an instance of a class.2)Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc.3)Object is a physical entity.4)Object is created through new keyword mainly e.g. Student s1=new Student();Difference between object and class – javatpoint www.javatpoint.com › difference-between-object-and-class

Read more