SlideShare une entreprise Scribd logo
1  sur  10
Presenting by – SHUVROJIT MAJUMDER (B.tech, CSE)
Year - 3rd Year Sem - 5th sem
Roll No. – 25900120006 Reg. No. – 202590100110010
Sub – OBJECT ORIENTED PROGRAMMING (OOPS)
Sub Code - PCC-CS503
Contents
OOP – “Object Oriented Programming” . This is an engineering approach to
build / develop Software System .
“Object” means a real-world entity such as a pen, chair, table, computer,
etc. ”Object-Oriented Programming” is a methodology or paradigm to
design a program using classes and objects.
There are some Key-features of the oop Concept . They are -------
1. Abstraction
2. Inheritance
3. Encapsulation
4. Polymorphism
In this presentation we are discussing about the most important three(3)
Inheritance , Encapsulation , Polymorphism .
INTRODUCTION
Basic OOP Concept
Key - Features
INHERITANCE
 Inheritance in Java is a mechanism in which one object acquires all the
properties and behaviors of a parent object .
 The idea behind inheritance in Java is that we can create new classes, -
which are built upon existing classes. When we inherit from an existing
class, we can re-use methods and fields of the parent class. So that due
to inheritance  Code reusability increases .
 Inheritance represents the IS-A relationship which is also known as a –
parent - child relationship .
 Program as example :
class Bike{
int wheel = 2;
}
class SportsBikeextends Bike {
int maxSpeed = 180;
public static void main(String args[]){
SportsBike ktm = new SportsBike();
System.out.println(“No.ofWheelin ktm is:"+ktm.wheel);
System.out.println(“Max Speedof
ktm is:"+ktm.maxSpeed+”Km/h”);
}
}
Code
No.of Wheel in ktm is : 2
Max Speed of ktm is : 180 Km/h
Output
 Terminologies used in Inheritance :
Class : A class is a group of objects which have common
properties. It is a template or blueprint of objects .
Sub Class/Child Class: Subclass is a class which inherits the
other class. It is also called a derived class, extended class, or child
class.
Super Class/Parent Class: Superclass is the class from where a
subclass inherits the features. It is also called a base class or a parent
class.
Reusability : As the name specifies, reusability is a mechanism
which facilitates us to reuse the fields & methods of the existing class
when we create a new class.
Types Of Inheritance :
ENCAPSULATION
class Name {
private int age; // Private is using to hide the data
public int getAge() { returnage; } // getter
public void setAge(intage) {
this.age = age;
} // setter
}
class GFG {
public static void main(String[] args) {
Name n1 = new Name();
n1.setAge(19);
System.out.println(“Theage of the person is: ”+
n1.getAge());
}
}
Code
The age of the person is : 19
Output
 Encapsulation in Java is a process of wrapping code and data together
into a single unit, for example, a capsule which is mixed of several
medicines.
 We can create a fully encapsulated class in Java by making all the data
members of the class private. Now we can use setter and getter methods
to set and get the data in it.
 The Java Bean class is the example of a fully encapsulated class.
 Program as example :
Advantages of Encapsulation in Java :
By providing only a setter or getter method, we can make the
class read-only or write-only. In other words, you can skip the --
getter or setter methods.
It provides us the control over the data. Suppose we want to set the
value of id which should be greater than 100 only, we can --write the
logic inside the setter method . We also can write the logic not to
store the negative numbers in the setter methods.
It is a way to achieve data hiding in Java because other class will not
be able to access the data through the private data members.
The encapsulate class is easy to test. So, it is better for unit testing.
The standard IDE's are providing the facility to generate the ---getters
and setters. So, it is easy and fast to create an encapsulated
class in Java.
POLYMORPHISM
 Polymorphism means having many forms. In simple words, we can define
polymorphism as the ability of a message to be displayed in more than
one form.
 Real - life Illustration: Polymorphism :
A person at the same time can have different
characteristics. Like a man at the same time is a
father, a Fruit Buyer, an employee. So the same
person possesses different behavior in different
situations. This is called polymorphism .
 Polymorphism is considered one of the
important features of Object-Oriented
Programming. Polymorphism allows us to perform
a single action in different ways. In other words, polymorphism allows you
to define one interface and have multiple implementations. The word ---
“poly” means many and “morphs” means forms, So it means many forms.
 Polymorphism is the ability of one object to be treated and used like ----
another object. As example, we treat duck as an animal and not just as a
duck. Similarly, we treat dog and cat also as animals.
Types of polymorphism :
In Java polymorphism is mainly divided into two types:
(1) Compile-time Polymorphism /Static Polymorphism –
 Overloading
 Overriding
(2) Runtime Polymorphism / Dynamic Polymorphism –
It is also known as Dynamic Method Dispatch. It is a proces
in which a function call to the overridden
method is resolved at Runtime. This type of polymor ---
phism is achieved by Method Overriding . Method overridi
on the other hand, occurs when a derived
class has a definition for one of the member functions
of the base class. That base function is said to be overridd
Shuvrojit Majumder .  25900120006  Object Oriented Programming (PCC-CS 503)    ..pptx

Contenu connexe

Similaire à Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ..pptx

FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
AnkurSingh340457
 
Jedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented conceptsJedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented concepts
Maryo Manjaruni
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2
Rakesh Madugula
 
Net Interview-Questions 1 - 16.pdf
Net Interview-Questions 1 - 16.pdfNet Interview-Questions 1 - 16.pdf
Net Interview-Questions 1 - 16.pdf
PavanNarne1
 

Similaire à Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ..pptx (20)

Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptx
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+java
 
OOPS in Java
OOPS in JavaOOPS in Java
OOPS in Java
 
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
 
Oops
OopsOops
Oops
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Jedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented conceptsJedi slides 2.1 object-oriented concepts
Jedi slides 2.1 object-oriented concepts
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2
 
python.pptx
python.pptxpython.pptx
python.pptx
 
Net Interview-Questions 1 - 16.pdf
Net Interview-Questions 1 - 16.pdfNet Interview-Questions 1 - 16.pdf
Net Interview-Questions 1 - 16.pdf
 
OOP in Java Presentation.pptx
OOP in Java Presentation.pptxOOP in Java Presentation.pptx
OOP in Java Presentation.pptx
 
Object Oriented Programming (OOP) Introduction
Object Oriented Programming (OOP) IntroductionObject Oriented Programming (OOP) Introduction
Object Oriented Programming (OOP) Introduction
 
Oop features java presentationshow
Oop features java presentationshowOop features java presentationshow
Oop features java presentationshow
 
Basics of object oriented programming
Basics of object oriented programmingBasics of object oriented programming
Basics of object oriented programming
 
Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptx
 
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptxOBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
 
1669609053088_oops_final.pptx
1669609053088_oops_final.pptx1669609053088_oops_final.pptx
1669609053088_oops_final.pptx
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
 

Dernier

Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
nilamkumrai
 

Dernier (20)

Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 

Shuvrojit Majumder . 25900120006 Object Oriented Programming (PCC-CS 503) ..pptx

  • 1. Presenting by – SHUVROJIT MAJUMDER (B.tech, CSE) Year - 3rd Year Sem - 5th sem Roll No. – 25900120006 Reg. No. – 202590100110010 Sub – OBJECT ORIENTED PROGRAMMING (OOPS) Sub Code - PCC-CS503
  • 3. OOP – “Object Oriented Programming” . This is an engineering approach to build / develop Software System . “Object” means a real-world entity such as a pen, chair, table, computer, etc. ”Object-Oriented Programming” is a methodology or paradigm to design a program using classes and objects. There are some Key-features of the oop Concept . They are ------- 1. Abstraction 2. Inheritance 3. Encapsulation 4. Polymorphism In this presentation we are discussing about the most important three(3) Inheritance , Encapsulation , Polymorphism . INTRODUCTION Basic OOP Concept Key - Features
  • 4. INHERITANCE  Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object .  The idea behind inheritance in Java is that we can create new classes, - which are built upon existing classes. When we inherit from an existing class, we can re-use methods and fields of the parent class. So that due to inheritance  Code reusability increases .  Inheritance represents the IS-A relationship which is also known as a – parent - child relationship .  Program as example : class Bike{ int wheel = 2; } class SportsBikeextends Bike { int maxSpeed = 180; public static void main(String args[]){ SportsBike ktm = new SportsBike(); System.out.println(“No.ofWheelin ktm is:"+ktm.wheel); System.out.println(“Max Speedof ktm is:"+ktm.maxSpeed+”Km/h”); } } Code No.of Wheel in ktm is : 2 Max Speed of ktm is : 180 Km/h Output
  • 5.  Terminologies used in Inheritance : Class : A class is a group of objects which have common properties. It is a template or blueprint of objects . Sub Class/Child Class: Subclass is a class which inherits the other class. It is also called a derived class, extended class, or child class. Super Class/Parent Class: Superclass is the class from where a subclass inherits the features. It is also called a base class or a parent class. Reusability : As the name specifies, reusability is a mechanism which facilitates us to reuse the fields & methods of the existing class when we create a new class. Types Of Inheritance :
  • 6. ENCAPSULATION class Name { private int age; // Private is using to hide the data public int getAge() { returnage; } // getter public void setAge(intage) { this.age = age; } // setter } class GFG { public static void main(String[] args) { Name n1 = new Name(); n1.setAge(19); System.out.println(“Theage of the person is: ”+ n1.getAge()); } } Code The age of the person is : 19 Output  Encapsulation in Java is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines.  We can create a fully encapsulated class in Java by making all the data members of the class private. Now we can use setter and getter methods to set and get the data in it.  The Java Bean class is the example of a fully encapsulated class.  Program as example :
  • 7. Advantages of Encapsulation in Java : By providing only a setter or getter method, we can make the class read-only or write-only. In other words, you can skip the -- getter or setter methods. It provides us the control over the data. Suppose we want to set the value of id which should be greater than 100 only, we can --write the logic inside the setter method . We also can write the logic not to store the negative numbers in the setter methods. It is a way to achieve data hiding in Java because other class will not be able to access the data through the private data members. The encapsulate class is easy to test. So, it is better for unit testing. The standard IDE's are providing the facility to generate the ---getters and setters. So, it is easy and fast to create an encapsulated class in Java.
  • 8. POLYMORPHISM  Polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.  Real - life Illustration: Polymorphism : A person at the same time can have different characteristics. Like a man at the same time is a father, a Fruit Buyer, an employee. So the same person possesses different behavior in different situations. This is called polymorphism .  Polymorphism is considered one of the important features of Object-Oriented Programming. Polymorphism allows us to perform a single action in different ways. In other words, polymorphism allows you to define one interface and have multiple implementations. The word --- “poly” means many and “morphs” means forms, So it means many forms.  Polymorphism is the ability of one object to be treated and used like ---- another object. As example, we treat duck as an animal and not just as a duck. Similarly, we treat dog and cat also as animals.
  • 9. Types of polymorphism : In Java polymorphism is mainly divided into two types: (1) Compile-time Polymorphism /Static Polymorphism –  Overloading  Overriding (2) Runtime Polymorphism / Dynamic Polymorphism – It is also known as Dynamic Method Dispatch. It is a proces in which a function call to the overridden method is resolved at Runtime. This type of polymor --- phism is achieved by Method Overriding . Method overridi on the other hand, occurs when a derived class has a definition for one of the member functions of the base class. That base function is said to be overridd