SlideShare a Scribd company logo
1 of 13
C# Tutorial
Part 28:Polymorphism
www.siri-kt.blogspot.com
Polymorphism
• Polymorphism means many forms (ability to take more than one
form). In Polymorphism poly means “multiple” and morph means
“forms” so polymorphism means many forms.
• In polymorphism we will declare methods with same name and
different parameters in same class or methods with same name and
same parameters in different classes.
• Polymorphism has ability to provide different implementation of
methods that are implemented with same name.
• In Polymorphism we have 2 different types those are
• Compile Time Polymorphism (Called as Early Binding or Overloading
or static binding)
• Run Time Polymorphism (Called as Late Binding or Overriding or
dynamic binding)
Method Overloading
• Compile time polymorphism means we will declare
methods with same name but different signatures
because of this we will perform different tasks
with same method name.
• This compile time polymorphism also called as early
binding or method overloading.
• Method Overloading or compile time polymorphism
means same method names with different
signatures (different parameters)
• If we create two or more members having same name
but different in number or type of parameter, it is
known as member overloading. In C#, we can overload:
• methods, constructors, and indexed properties
• It is because these members have parameters only.
• Having two or more methods with same name but
different in parameters, is known as method overloading
in C#.
• The advantage of method overloading is that it
increases the readability of the program because you
don't need to use different names for same action.
• You can perform method overloading in C# by two ways:
• By changing number of arguments
• By changing data type of the arguments
Method Overloading example
• public class Class1
• { public void NumbersAdd(int a, int b)
• { Console.WriteLine(a + b);
• }
• public void NumbersAdd(int a, int b, int c)
• { Console.WriteLine(a + b + c);
• } }
• In above class we have two methods with same name but
having different input parameters this is called method
overloading or compile time polymorphism or early
binding.
Method Overridding
• Run time polymorphism also called as late
binding or method overriding or dynamic polymorphism.
• Run time polymorphism or method overriding means same
method names with same signatures.
• In this run time polymorphism or method overriding we
can override a method in base class by creating similar
function in derived class this can be achieved by using
inheritance principle and using “virtual & override”
keywords.
• In base class if we declare methods with virtual keyword
then only we can override those methods in derived class
using override keyword
• If derived class defines same method as defined in
its base class, it is known as method overriding in
C#.
• It is used to achieve runtime polymorphism. It
enables you to provide specific implementation of
the method which is already provided by its base
class.
• To perform method overriding in C#, you need to
use virtual keyword with base class method
and override keyword with derived class method.
Method Overridding
• //Base Class
• public class Bclass
• { public virtual void Sample1()
• { Console.WriteLine("Base Class");
• }}
• // Derived Class
• public class DClass : Bclass
• { public override void Sample1()
• {Console.WriteLine("Derived Class");
• } }
Method Overridding example
• // Using base and derived class
• class Program
• { static void Main(string[] args)
• { // calling the overriden method
• DClass objDc = new DClass();
• objDc.Sample1();
• // calling the base class method
• Bclass objBc = new DClass();
• objBc.Sample1(); } }
• Output:
• Derived Class
• Derived Class
• C# Base
• In C#, base keyword is used to access fields,
constructors and methods of base class.
• You can use base keyword within instance method,
constructor or instance property accessor only. You
can't use it inside the static method.
• C# base keyword: accessing base class field
• We can use the base keyword to access the fields
of the base class within derived class. It is useful if
base and derived classes have the same fields. If
derived class doesn't define same field, there is no
need to use base keyword. Base class field can be
• C# base keyword example: calling base class
method
• By the help of base keyword, we can call the base
class method also.
• It is useful if base and derived classes defines
same method. In other words, if method is
overridden.
• If derived class doesn't define same method, there
is no need to use base keyword. Base class method
can be directly called by the derived class method.
C# Sealed
• C# sealed keyword applies restrictions on the class
and method. If you create a sealed class, it cannot
be derived. If you create a sealed method, it cannot
be overridden.
For more visit our website www.siri-kt.blogspot.com
Thanks for
Watching
More Angular JS TutorialsMore C sharp (c#) tutorials

More Related Content

What's hot (20)

Introduction to method overloading & method overriding in java hdm
Introduction to method overloading & method overriding  in java  hdmIntroduction to method overloading & method overriding  in java  hdm
Introduction to method overloading & method overriding in java hdm
 
Javapolymorphism
JavapolymorphismJavapolymorphism
Javapolymorphism
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - Polymorphism
 
Polymorphism in java
Polymorphism in java Polymorphism in java
Polymorphism in java
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
 
Polymorphism in java
Polymorphism in javaPolymorphism in java
Polymorphism in java
 
Polymorphism and its types
Polymorphism and its typesPolymorphism and its types
Polymorphism and its types
 
Method overloading
Method overloadingMethod overloading
Method overloading
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
What is method overloading and overriding in java?
What is method overloading and overriding in java?What is method overloading and overriding in java?
What is method overloading and overriding in java?
 
Polymorphism presentation in java
Polymorphism presentation in javaPolymorphism presentation in java
Polymorphism presentation in java
 
Dynamic method dispatch
Dynamic method dispatchDynamic method dispatch
Dynamic method dispatch
 
Polymorphism in Java
Polymorphism in JavaPolymorphism in Java
Polymorphism in Java
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Inheritance and polymorphism
Inheritance and polymorphism   Inheritance and polymorphism
Inheritance and polymorphism
 
Polymorphism in java
Polymorphism in javaPolymorphism in java
Polymorphism in java
 
Ppt on this and super keyword
Ppt on this and super keywordPpt on this and super keyword
Ppt on this and super keyword
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Overloading and overriding in vb.net
Overloading and overriding in vb.netOverloading and overriding in vb.net
Overloading and overriding in vb.net
 

Similar to 28csharp

Java Polymorphism: Types And Examples (Geekster)
Java Polymorphism: Types And Examples (Geekster)Java Polymorphism: Types And Examples (Geekster)
Java Polymorphism: Types And Examples (Geekster)Geekster
 
Md06 advance class features
Md06 advance class featuresMd06 advance class features
Md06 advance class featuresRakesh Madugula
 
Unit 7 inheritance
Unit 7 inheritanceUnit 7 inheritance
Unit 7 inheritanceatcnerd
 
03 Java Language And OOP Part III
03 Java Language And OOP Part III03 Java Language And OOP Part III
03 Java Language And OOP Part IIIHari Christian
 
A Case Study on Java. Java Presentation
A Case Study on Java. Java Presentation A Case Study on Java. Java Presentation
A Case Study on Java. Java Presentation Ayush Gupta
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesSunil Kumar Gunasekaran
 
Presentation 3rd
Presentation 3rdPresentation 3rd
Presentation 3rdConnex
 
‫‫Chapter4 Polymorphism
‫‫Chapter4 Polymorphism‫‫Chapter4 Polymorphism
‫‫Chapter4 PolymorphismMahmoud Alfarra
 
full defination of final opp.pptx
full defination of final opp.pptxfull defination of final opp.pptx
full defination of final opp.pptxrayanbabur
 
Learn java lessons_online
Learn java lessons_onlineLearn java lessons_online
Learn java lessons_onlinenishajj
 
11.C++Polymorphism [Autosaved].pptx
11.C++Polymorphism [Autosaved].pptx11.C++Polymorphism [Autosaved].pptx
11.C++Polymorphism [Autosaved].pptxAtharvPotdar2
 
Virtual function
Virtual functionVirtual function
Virtual functionzindadili
 
Chapter 05 polymorphism
Chapter 05 polymorphismChapter 05 polymorphism
Chapter 05 polymorphismNurhanna Aziz
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python Home
 
P.7 media 2 polymorphism
P.7 media 2 polymorphismP.7 media 2 polymorphism
P.7 media 2 polymorphismahmadmuzaqqi
 

Similar to 28csharp (20)

Java Polymorphism: Types And Examples (Geekster)
Java Polymorphism: Types And Examples (Geekster)Java Polymorphism: Types And Examples (Geekster)
Java Polymorphism: Types And Examples (Geekster)
 
Md06 advance class features
Md06 advance class featuresMd06 advance class features
Md06 advance class features
 
Unit 7 inheritance
Unit 7 inheritanceUnit 7 inheritance
Unit 7 inheritance
 
03 Java Language And OOP Part III
03 Java Language And OOP Part III03 Java Language And OOP Part III
03 Java Language And OOP Part III
 
A Case Study on Java. Java Presentation
A Case Study on Java. Java Presentation A Case Study on Java. Java Presentation
A Case Study on Java. Java Presentation
 
Java OOPs
Java OOPs Java OOPs
Java OOPs
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examples
 
Presentation 3rd
Presentation 3rdPresentation 3rd
Presentation 3rd
 
‫‫Chapter4 Polymorphism
‫‫Chapter4 Polymorphism‫‫Chapter4 Polymorphism
‫‫Chapter4 Polymorphism
 
JAVA_POLYMORPHISM.pptx
JAVA_POLYMORPHISM.pptxJAVA_POLYMORPHISM.pptx
JAVA_POLYMORPHISM.pptx
 
full defination of final opp.pptx
full defination of final opp.pptxfull defination of final opp.pptx
full defination of final opp.pptx
 
Java inheritance
Java inheritanceJava inheritance
Java inheritance
 
Learn java lessons_online
Learn java lessons_onlineLearn java lessons_online
Learn java lessons_online
 
11.C++Polymorphism [Autosaved].pptx
11.C++Polymorphism [Autosaved].pptx11.C++Polymorphism [Autosaved].pptx
11.C++Polymorphism [Autosaved].pptx
 
Ch5 inheritance
Ch5 inheritanceCh5 inheritance
Ch5 inheritance
 
Virtual function
Virtual functionVirtual function
Virtual function
 
Chapter 05 polymorphism
Chapter 05 polymorphismChapter 05 polymorphism
Chapter 05 polymorphism
 
Core java oop
Core java oopCore java oop
Core java oop
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python
 
P.7 media 2 polymorphism
P.7 media 2 polymorphismP.7 media 2 polymorphism
P.7 media 2 polymorphism
 

More from Sireesh K (20)

Cn10
Cn10Cn10
Cn10
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
What is mvc
What is mvcWhat is mvc
What is mvc
 
31c
31c31c
31c
 
31cs
31cs31cs
31cs
 
45c
45c45c
45c
 
44c
44c44c
44c
 
43c
43c43c
43c
 
42c
42c42c
42c
 
41c
41c41c
41c
 
40c
40c40c
40c
 
39c
39c39c
39c
 
38c
38c38c
38c
 
37c
37c37c
37c
 
35c
35c35c
35c
 
34c
34c34c
34c
 
33c
33c33c
33c
 
30c
30c30c
30c
 
29c
29c29c
29c
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

28csharp

  • 2. Polymorphism • Polymorphism means many forms (ability to take more than one form). In Polymorphism poly means “multiple” and morph means “forms” so polymorphism means many forms. • In polymorphism we will declare methods with same name and different parameters in same class or methods with same name and same parameters in different classes. • Polymorphism has ability to provide different implementation of methods that are implemented with same name. • In Polymorphism we have 2 different types those are • Compile Time Polymorphism (Called as Early Binding or Overloading or static binding) • Run Time Polymorphism (Called as Late Binding or Overriding or dynamic binding)
  • 3. Method Overloading • Compile time polymorphism means we will declare methods with same name but different signatures because of this we will perform different tasks with same method name. • This compile time polymorphism also called as early binding or method overloading. • Method Overloading or compile time polymorphism means same method names with different signatures (different parameters)
  • 4. • If we create two or more members having same name but different in number or type of parameter, it is known as member overloading. In C#, we can overload: • methods, constructors, and indexed properties • It is because these members have parameters only. • Having two or more methods with same name but different in parameters, is known as method overloading in C#. • The advantage of method overloading is that it increases the readability of the program because you don't need to use different names for same action. • You can perform method overloading in C# by two ways: • By changing number of arguments • By changing data type of the arguments
  • 5. Method Overloading example • public class Class1 • { public void NumbersAdd(int a, int b) • { Console.WriteLine(a + b); • } • public void NumbersAdd(int a, int b, int c) • { Console.WriteLine(a + b + c); • } } • In above class we have two methods with same name but having different input parameters this is called method overloading or compile time polymorphism or early binding.
  • 6. Method Overridding • Run time polymorphism also called as late binding or method overriding or dynamic polymorphism. • Run time polymorphism or method overriding means same method names with same signatures. • In this run time polymorphism or method overriding we can override a method in base class by creating similar function in derived class this can be achieved by using inheritance principle and using “virtual & override” keywords. • In base class if we declare methods with virtual keyword then only we can override those methods in derived class using override keyword
  • 7. • If derived class defines same method as defined in its base class, it is known as method overriding in C#. • It is used to achieve runtime polymorphism. It enables you to provide specific implementation of the method which is already provided by its base class. • To perform method overriding in C#, you need to use virtual keyword with base class method and override keyword with derived class method.
  • 8. Method Overridding • //Base Class • public class Bclass • { public virtual void Sample1() • { Console.WriteLine("Base Class"); • }} • // Derived Class • public class DClass : Bclass • { public override void Sample1() • {Console.WriteLine("Derived Class"); • } }
  • 9. Method Overridding example • // Using base and derived class • class Program • { static void Main(string[] args) • { // calling the overriden method • DClass objDc = new DClass(); • objDc.Sample1(); • // calling the base class method • Bclass objBc = new DClass(); • objBc.Sample1(); } } • Output: • Derived Class • Derived Class
  • 10. • C# Base • In C#, base keyword is used to access fields, constructors and methods of base class. • You can use base keyword within instance method, constructor or instance property accessor only. You can't use it inside the static method. • C# base keyword: accessing base class field • We can use the base keyword to access the fields of the base class within derived class. It is useful if base and derived classes have the same fields. If derived class doesn't define same field, there is no need to use base keyword. Base class field can be
  • 11. • C# base keyword example: calling base class method • By the help of base keyword, we can call the base class method also. • It is useful if base and derived classes defines same method. In other words, if method is overridden. • If derived class doesn't define same method, there is no need to use base keyword. Base class method can be directly called by the derived class method.
  • 12. C# Sealed • C# sealed keyword applies restrictions on the class and method. If you create a sealed class, it cannot be derived. If you create a sealed method, it cannot be overridden.
  • 13. For more visit our website www.siri-kt.blogspot.com Thanks for Watching More Angular JS TutorialsMore C sharp (c#) tutorials