120 likes | 140 Views
In this presentation you will learn the concepts of OOPS i.e. what is OOPS, its need and benefits.<br>For more details Visit - http://academy.bafflesol.com/ <br> Or Call us at 0124-4968952 and drop a mail at info@bafflesol.com<br>
E N D
AGENDA OOPs : • What is OOPs • What are the concepts of OOPs • Why do we need it • Benefits of OOPs
OOPs (Object Oriented Programming System) • Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. • It simplifies the software development and maintenance by providing some concepts such as inheritance, data binding, polymorphism etc.
OBJECT & CLASS • Any entity that has state and behavior is known as an object. • Object can be defined as an instance of a class. • A class can also be defined as a blueprint from which you can create an individual object.
CONCEPTS: • Inheritance • Polymorphism • Abstraction • Encapsulation
INHERITANCE When one object acquires all the properties and behaviors of parent object, it is known as inheritance Class A Class A Class A Extends Extends Extends Extends Class B Class B Class B Class C Extends Class C
POLYMORPHISM • When one task is performed by different ways that is known as polymorphism. For example:- You have a smartphone for communication.
ABSTRACTION • Abstraction is a process of hiding the implementation details and showing only functionality to the user. For Example:- To send a message via mobile phone.
ENCAPSULATION • Encapsulation is a process of wrapping code and data together into a single unit For example:- A Capsule that is mixed of several medicines.
WHY WE NEED IT ? Procedural application OO-application DATA Line of code Line of code Line of code Data is stored independent of application Each object is independent of the others
BENEFITS • It is easy to model a real system as real objects are represented by programming objects in OOPs. • With the help of inheritance, we can reuse the existing class. • In OOPs, data can be made private to a class such that only member functions of the class can access the data. • With the help of polymorphism, the same function can be used for different purposes. • Large problems can be reduced to smaller and more manageable problems. It is easy to partition the work in a project based on objects.
For More Details: Call: 0124- 4968952 Email: info@bafflesol.com Website: www.academy.bafflesol.com