SlideShare a Scribd company logo
1 of 27
 Visual Basic is object-Based, which means it
is a Object-Oriented Programming Language.
 Visual Basic .Net supports all features of OOP
like
 Abstraction,
 Encapsulation,
 Polymorphism
 and Inheritance.
 Traditionally, programming has placed an
emphasis on logic and actions.
 Object oriented programming has taken a
completely different direction,and will place
an emphasis on objects and information.
 With object oriented programming, a problem
will be broken down into a number of units.
These units are called objects.
 The foundation of OOP is the fact that it will
place an emphasis on objects and classes.
 In Object-Oriented programming a program
is divided into object and these object can
communicate with each other through
functions.
 Objects
 Classes
 Data Abstraction
 Encapsulation
 Polymorphism
 Inheritance
 Object is the basic unit of object-oriented
programming.
 Objects are identified by its unique name.
 An object represents a particular instance of a
class.
 An Object is a collection of data members
and associated member functions also known
as methods.
 When a program is executed, objects interact
with each other by sending messages.
 Objects with similar properties and methods
are grouped together to form a Class.
 The actions that can be performed by objects
becomes functions of the class and is
referred to as Methods.
 Data Abstraction also represents the needed
information in the program without
presenting the details.
 Data Encapsulation combines data and
functions into a single unit called Class.
 When using Data Encapsulation, data is not
accessed directly; it is only accessible
through the functions present inside the
class. Data Encapsulation enables the
important concept of data hiding possible.
 Poly means many and morph means form.
Thus, polymorphism refers to being able to
use many forms of a type without regard to
the details.
 It is the characteristic of being able to assign
a different meaning specifically, to allow an
entity such as a variable, a function, or an
object to have more than one form.
 Inheritance is the process of forming a new class
from an existing class or base class. The base
class is also known as parent class or super class,
The new class that is formed is called derived
class.
 Derived class is also known as a child
class or sub class.
 Inheritance helps in reducing the overall code
size of the program, which is an important
concept in object-oriented programming.
 OOPS provides a clear modular structure for
programs which makes it good for defining
abstract data types .
 OOPS makes it easy to maintain and modify
existing code as new objects can be created
with small differences to existing ones.
 OOPS provides a good framework for code
libraries where supplied software components
can be easily adapted and modified by the
programmer. This is particularly useful for
developing graphical user interfaces.
 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
they 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)

 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)
 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 “overrides”
keywords.
 Interfaces in VB.net are used to define the
class members using a keyword Interface,
without actually specifying how it should be
implemented in a Class.
 Intefaces are examples for multiple
Inheritance and are implemented in the
classes using the keyword Implements that is
used before any Dim statement in a class.
Public Interface name
……methods…
End Interface
 The keyword abstract can be used with both
classes and methods in VB.NET to declare
them as abstract.
 The classes, which we can't initialize, are
known as abstract classes.
 They provide only partial implementations.
But another class can inherit from an abstract
class and can create their instances.
 An Abstract class doesn't provide full
abstraction but an interface does provide full
abstraction; i.e. both a declaration and a
definition is given in an abstract class but not
so in an interface.
 Using Abstract we can not achieve multiple
inheritance but using an Interface we can
achieve multiple inheritance.
 We can not declare a member field in an
Interface.
 We can not use any access modifier i.e. public
, private , protected , internal etc. because
within an interface by default everything is
public.
 An Interface member cannot be defined using
the keyword static, virtual, abstract or sealed.

More Related Content

What's hot

Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVAAbhilash Nair
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Visibility control in java
Visibility control in javaVisibility control in java
Visibility control in javaTech_MX
 
Polymorphism presentation in java
Polymorphism presentation in javaPolymorphism presentation in java
Polymorphism presentation in javaAhsan Raja
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationBIT Durg
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation TechniquesSanthi thi
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationshipsPooja mittal
 
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overridingRajab Ali
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented ProgrammingIqra khalil
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologiesAmith Tiwari
 
Access specifiers (Public Private Protected) C++
Access specifiers (Public Private  Protected) C++Access specifiers (Public Private  Protected) C++
Access specifiers (Public Private Protected) C++vivekkumar2938
 

What's hot (20)

Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVA
 
polymorphism
polymorphism polymorphism
polymorphism
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Visibility control in java
Visibility control in javaVisibility control in java
Visibility control in java
 
Polymorphism presentation in java
Polymorphism presentation in javaPolymorphism presentation in java
Polymorphism presentation in java
 
Oops
OopsOops
Oops
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
Function overloading and overriding
Function overloading and overridingFunction overloading and overriding
Function overloading and overriding
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Namespaces in C#
Namespaces in C#Namespaces in C#
Namespaces in C#
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
Access specifiers (Public Private Protected) C++
Access specifiers (Public Private  Protected) C++Access specifiers (Public Private  Protected) C++
Access specifiers (Public Private Protected) C++
 

Similar to Oops in vb

What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxhreempandya
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP IntroductionHashni T
 
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 JavaMadishetty Prathibha
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programmingPraveen Chowdary
 
Java OOPs Concepts.docx
Java OOPs Concepts.docxJava OOPs Concepts.docx
Java OOPs Concepts.docxFredWauyo
 
C#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developersC#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developersSanjaya Prakash Pradhan
 
OOps Interview questions.pdf
OOps Interview questions.pdfOOps Interview questions.pdf
OOps Interview questions.pdfGeekster
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.Questpond
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Languagedheva B
 

Similar to Oops in vb (20)

What is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptxWhat is OOP_ (Object Oriented Programming) (1).pptx
What is OOP_ (Object Oriented Programming) (1).pptx
 
Oop
OopOop
Oop
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP Introduction
 
Object oriented programing
Object oriented programingObject oriented programing
Object oriented programing
 
Chapter1 introduction
Chapter1 introductionChapter1 introduction
Chapter1 introduction
 
C# concepts
C# conceptsC# concepts
C# concepts
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
 
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
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programming
 
Java OOPs Concepts.docx
Java OOPs Concepts.docxJava OOPs Concepts.docx
Java OOPs Concepts.docx
 
C#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developersC#.net interview questions for dynamics 365 ce crm developers
C#.net interview questions for dynamics 365 ce crm developers
 
OOps Interview questions.pdf
OOps Interview questions.pdfOOps Interview questions.pdf
OOps Interview questions.pdf
 
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-PPT'S.pdf
JAVA-PPT'S.pdfJAVA-PPT'S.pdf
JAVA-PPT'S.pdf
 
concept of oops
concept of oopsconcept of oops
concept of oops
 
OOP interview questions & answers.
OOP interview questions & answers.OOP interview questions & answers.
OOP interview questions & answers.
 
Principles of oop
Principles of oopPrinciples of oop
Principles of oop
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
 
OOP
OOPOOP
OOP
 

Recently uploaded

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 

Recently uploaded (20)

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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 ...
 

Oops in vb

  • 1.
  • 2.  Visual Basic is object-Based, which means it is a Object-Oriented Programming Language.  Visual Basic .Net supports all features of OOP like  Abstraction,  Encapsulation,  Polymorphism  and Inheritance.
  • 3.  Traditionally, programming has placed an emphasis on logic and actions.  Object oriented programming has taken a completely different direction,and will place an emphasis on objects and information.  With object oriented programming, a problem will be broken down into a number of units. These units are called objects.
  • 4.  The foundation of OOP is the fact that it will place an emphasis on objects and classes.  In Object-Oriented programming a program is divided into object and these object can communicate with each other through functions.
  • 5.  Objects  Classes  Data Abstraction  Encapsulation  Polymorphism  Inheritance
  • 6.  Object is the basic unit of object-oriented programming.  Objects are identified by its unique name.  An object represents a particular instance of a class.  An Object is a collection of data members and associated member functions also known as methods.  When a program is executed, objects interact with each other by sending messages.
  • 7.  Objects with similar properties and methods are grouped together to form a Class.  The actions that can be performed by objects becomes functions of the class and is referred to as Methods.
  • 8.  Data Abstraction also represents the needed information in the program without presenting the details.
  • 9.  Data Encapsulation combines data and functions into a single unit called Class.  When using Data Encapsulation, data is not accessed directly; it is only accessible through the functions present inside the class. Data Encapsulation enables the important concept of data hiding possible.
  • 10.  Poly means many and morph means form. Thus, polymorphism refers to being able to use many forms of a type without regard to the details.  It is the characteristic of being able to assign a different meaning specifically, to allow an entity such as a variable, a function, or an object to have more than one form.
  • 11.  Inheritance is the process of forming a new class from an existing class or base class. The base class is also known as parent class or super class, The new class that is formed is called derived class.  Derived class is also known as a child class or sub class.  Inheritance helps in reducing the overall code size of the program, which is an important concept in object-oriented programming.
  • 12.  OOPS provides a clear modular structure for programs which makes it good for defining abstract data types .  OOPS makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.  OOPS provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.
  • 13.  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.
  • 14.  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.
  • 15.  In Polymorphism we have 2 different types they 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)
  • 16.   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)
  • 17.  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. 
  • 18.  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 “overrides” keywords.
  • 19.
  • 20.  Interfaces in VB.net are used to define the class members using a keyword Interface, without actually specifying how it should be implemented in a Class.  Intefaces are examples for multiple Inheritance and are implemented in the classes using the keyword Implements that is used before any Dim statement in a class.
  • 22.
  • 23.  The keyword abstract can be used with both classes and methods in VB.NET to declare them as abstract.
  • 24.  The classes, which we can't initialize, are known as abstract classes.  They provide only partial implementations. But another class can inherit from an abstract class and can create their instances.
  • 25.
  • 26.  An Abstract class doesn't provide full abstraction but an interface does provide full abstraction; i.e. both a declaration and a definition is given in an abstract class but not so in an interface.  Using Abstract we can not achieve multiple inheritance but using an Interface we can achieve multiple inheritance.
  • 27.  We can not declare a member field in an Interface.  We can not use any access modifier i.e. public , private , protected , internal etc. because within an interface by default everything is public.  An Interface member cannot be defined using the keyword static, virtual, abstract or sealed.