OOP is a design philosophy. It stands for Object Oriented Programming. Object-Oriented Programming (OOP) uses a different set of programming languages than old procedural programming languages (C, Pascal, etc.). Everything in OOP is grouped as self sustainable "objects". Hence, we gain reusability by means of four main object-oriented programming concepts.
In order to clearly understand the object orientation model, let’s take our “hand” as an example. The “hand” is a class. Our body has two objects of the type "hand", named "left hand" and "right hand". Their main functions are controlled or managed by a set of electrical signals sent through our shoulders (through an interface). So the shoulder is an interface that our body uses to interact with our hands. The hand is a well-architected class. The hand is being reused to create the left hand and the right hand by slightly changing the properties of it.
No comments:
Post a Comment