Introduction to Object Oriented in Python
Object Oriented programming is a programming style that is associated with the concept of Class, Objects and various other concepts revolving around these two, like Inheritance, Polymorphism, Abstraction, Encapsulation etc.OOP is designed in such a way that one should focus on data while programming and not the procedure
An object can be anything that we see around us. It can be a human (that has some properties like - name, address, DOB and so on), a chair (portrayed by size, material, cost etc), a school (depicted by place, student strength, results) etc.
Object Oriented Programming System (OOPs)
Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behaviour. Object-oriented programming(OOPs) is a methodology that simplify software development and maintenance by providing some rules. Basic concepts of OOPs are:
Class is a blueprint of an object which have certain properties and behavior. Class is template defined so that we can create the object of this class type.
Object is a real world entity which have properties and behavior. Real world entity means we can use the properties and behavior of an Object . for example : laptop, pc, table, pen ,chair etc.
All the things to which we can touch and feel is an Object .
Hiding the internal implementation and highlighting the set of services/functionality is called Abstraction .
Example : Bank ATM Screens (Hiding their internal implementation and highlighting set of services like withdraw, money transfer, mobile registration).
The process of binding(or wrapping) the data and the code into a single unit is called Encapsulation .
Hiding of the data from the outside person so that outside person can not access the data directly. This process is know as Data Hiding .
olymorphism is one of the OOPs feature that allows us to perform a single action in different ways .
example : Draw something e.g. shape or rectangle.
nheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object. It is one of the fundamental features of object-oriented programming.
What next ?
Class in Python