In this section we will discuss concept of Object oriented programming.
Object Oriented Programming :
Object Oriented Programming, better termed as OOPs is a paradigm where everything is represented as an object. It provides ability to simulate real-world event much more effectively. Everything in OOPs is written inside the class so that you can reuse the class.You can use properties and methods with the help of class objects. If you are new to OOPs just understand the following terms in OOPs.
Object : An object is a thing which can perform a set of related activates. It is set of activates for that it is used and it also defines its behavior. It plays an important role during the program execution as it is accessed. created or deleted at run time.
Class: Class is just like template that holds your objects. You can also say that class is a blue print that can be used used in creating object.
It provides a great flexibility, reusability, modularity and security to an application and simplifies the software development and maintenance by providing following concepts:
Abstraction : Abstraction means hiding the unnecessary information to the user and show only essential features.
Encapsulation: Encapsulation is a way of wrapping up data and methods into a single unit.
Inheritance: Inheritance means accessing properties of super class including its own functionality.
Polymorphism: It is a concept to have more than one form. In polymorphism, we use the method overloading and method overriding techniques.
Liked it! Share this Tutorial