The document provides an overview of key Object-Oriented Programming (OOP) concepts including classes, objects, abstraction, inheritance, interfaces, polymorphism, and encapsulation. It explains that classes are logical entities containing sets of objects, while objects are real-time entities identified by their identity, state, and behavior. Additionally, it discusses inheritance as a way to derive new classes from existing ones, and encapsulation as the process of wrapping code and data together.
OOPS ▪ Class ▪ Object ▪Abstraction ▪ Inheritance ▪ Interface ▪ Encapsulation ▪ Polymorphism atozknowledge.com@gmail.comwww.atozknowledge.com Identity State Behavior
4.
Class ▪ Class islogical entity ▪ Class contain set of objects or collection of objects atozknowledge.com@gmail.comwww.atozknowledge.com
5.
Objects ▪ Objects arereal time entity ▪ Identify the object by its ▪ Identity ▪ State ▪ Behavior atozknow ledge.co m@gmail .com www.atozknowledge.com
6.
Abstraction ▪ The generalmeaning for abstraction is ELIMINATION i.e fetching only the wanted information even though all information is available based on our need we are eliminating the unwanted information. atozknow ledge.co m@gmail .com www.atozknowledge.com
7.
Inheritance ▪ When oneClass extends another Class. Deriving new class from the existing class parent child relationship Two types ▪ Single level ▪ Multi level atozknowledge.com@gmail.comwww.atozknowledge.com
8.
Cont.. Single level Deriving anew class from the existing class(one to one) Example class A { } class B extends class A { } atozknowledge.com@gmail.comwww.atozknowledge.com
9.
Cont.. Multi Level Deriving multilevelof new class from the parent Example class A{ } class B extends class A { } class C extends class B{ } atozknowledge.com@gmail.comwww.atozknowledge.com
10.
Interface ▪ Replacement ofmultiple inheritance that has methods and method definition and no implementation atozknowledge.com@gmail.comwww.atozknowledge.com
11.
Polymorphism ▪ The generalmeaning for POLY — many MORPHISM — behavior. Two types of polymorphism. atozknowledge.com@gmail.comwww.atozknowledge.com
12.
Encapsulation ▪ Encapsulation isa process of wrapping code and data together into a single unit e.g. capsule i.e mixed of several medicines. atozknowledge.com@gmail.comwww.atozknowledge.com