SlideShare a Scribd company logo
1 of 27
Download to read offline
 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

Similar to Visual Basic OOP Concepts Explained

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
 
1 intro
1 intro1 intro
1 introabha48
 
Oop by edgar lagman jr
Oop by edgar lagman jr Oop by edgar lagman jr
Oop by edgar lagman jr Jun-jun Lagman
 
Top 30 Technical interview questions
Top 30 Technical interview questionsTop 30 Technical interview questions
Top 30 Technical interview questionsSohailSaifi15
 
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in pythonnitamhaske
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programmingPraveen M Jigajinni
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming languageMd.Al-imran Roton
 

Similar to Visual Basic OOP Concepts Explained (20)

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
 
1 intro
1 intro1 intro
1 intro
 
Oop by edgar lagman jr
Oop by edgar lagman jr Oop by edgar lagman jr
Oop by edgar lagman jr
 
Top 30 Technical interview questions
Top 30 Technical interview questionsTop 30 Technical interview questions
Top 30 Technical interview questions
 
Advance oops concepts
Advance oops conceptsAdvance oops concepts
Advance oops concepts
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
 
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in python
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programming
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 

More from JP Chicano

cssfasfasfasfas afsasfasfasfas safasfasf
cssfasfasfasfas afsasfasfasfas safasfasfcssfasfasfasfas afsasfasfasfas safasfasf
cssfasfasfasfas afsasfasfasfas safasfasfJP Chicano
 
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdf
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdfTRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdf
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdfJP Chicano
 
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdf
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdfTRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdf
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdfJP Chicano
 
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaf
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaffwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaf
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdafJP Chicano
 
MariaSoccorro-Ramosfagsagsdgsdagdsagsadgsag
MariaSoccorro-RamosfagsagsdgsdagdsagsadgsagMariaSoccorro-Ramosfagsagsdgsdagdsagsadgsag
MariaSoccorro-RamosfagsagsdgsdagdsagsadgsagJP Chicano
 
parts of mobo for sharing.pdf
parts of mobo for sharing.pdfparts of mobo for sharing.pdf
parts of mobo for sharing.pdfJP Chicano
 

More from JP Chicano (15)

cssfasfasfasfas afsasfasfasfas safasfasf
cssfasfasfasfas afsasfasfasfas safasfasfcssfasfasfasfas afsasfasfasfas safasfasf
cssfasfasfasfas afsasfasfasfas safasfasf
 
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdf
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdfTRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdf
TRAINING PLAN 1ST Year-1st Sem.dasdasdasdpdf
 
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdf
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdfTRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdf
TRAINING PLAN 2ND Year-2nd Semgsdgsdg.pdf
 
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaf
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaffwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaf
fwfgsdfsagsdag sdgsdagsadf qwf sdafasdaf sdaf
 
MariaSoccorro-Ramosfagsagsdgsdagdsagsadgsag
MariaSoccorro-RamosfagsagsdgsdagdsagsadgsagMariaSoccorro-Ramosfagsagsdgsdagdsagsadgsag
MariaSoccorro-Ramosfagsagsdgsdagdsagsadgsag
 
1.pdf
1.pdf1.pdf
1.pdf
 
parts of mobo for sharing.pdf
parts of mobo for sharing.pdfparts of mobo for sharing.pdf
parts of mobo for sharing.pdf
 
12786246.ppt
12786246.ppt12786246.ppt
12786246.ppt
 
CSS HTML.pdf
CSS HTML.pdfCSS HTML.pdf
CSS HTML.pdf
 
download.pdf
download.pdfdownload.pdf
download.pdf
 
MIS.ppt
MIS.pptMIS.ppt
MIS.ppt
 
11.ppt
11.ppt11.ppt
11.ppt
 
a.pdf
a.pdfa.pdf
a.pdf
 
13665449.ppt
13665449.ppt13665449.ppt
13665449.ppt
 
3306565.ppt
3306565.ppt3306565.ppt
3306565.ppt
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Visual Basic OOP Concepts Explained

  • 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.