Now we shall discuss about char of object orientation programming in short.

  • Realistic Modeling
    It is based on modeling a real world which comprises of objects . Object oriented approach allows you to identify objects having attributes and behavior. Attributes and behavior explains how an object acts and reacts. consider the example :- car is an object of class vehicle which has the attributes such as speed, color, power. It displays behavior such as being stationery, moving slowly, accelerating.
  • Reusability
    The Process of using an object for different purposes is known as reusability. This concept mainly involves the usage of existing classes or objects from other applications resources spent in recreating the classes from scratch. example: consider the usage of a two seater car
    to bring it to four seater car which posses new attributes and behaviour. note:
    Process of creating a new class by adding some features to existing class is known as inheritance.
  • Resilence to change
    An existing object can be used to create a similar object. exam: you have a wooden chair and you need to add a head rest to it . So this feature of object orientation programming explains the modification of already existing object to a new object. so inorder to obtain a chair with headrest there is no need for the user to create a new chair but instead he can use the existing chair and add a headrest to it . Resilence to change results in easier maintenance and this feature of Oops is also known as Extensibility.




0 Comments:

Post a Comment



Newer Post Older Post Home