created(instantiated), each object has the same structure and behavior as the class from which it is instantiated.
❑If object obj belongs to class C, obj is a instance of class c.
❑A class is a group of object which have common properties .
❑It is a template or blueprint from which object are created ❑It is a logical entity ❑It cant be physical (No memory space) ❑Class is what you can design and program object An object is an instance of a class . Any entity that has state and behavior is known as an object. for example, chair , pen ,table etc… ➢ It can be physical or logical. ➢ All the object of a class have same structure same bunch of operation and attributes. ➢ Each class have its own methords. ❑ This approach to allocating memory to objects is very wasteful. ❑ The methods of the objects is identical and each set of ,methods contain only procedural code ❑ Single set can be shared by all the objects ❑ Each object has its own set of operational methods in practice they all share the same physical copy. Base class ❑ Base class is class from which other classes are derived. Derived class ❑ Derived class is a class created or derived from another existing class . o Inheritance is a mechanism in which one class acquires the properties of another class.
o Polymorphism refers to the ability to process
objects differently depending on their data type or class.