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

Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
thinkphp
 

What's hot (20)

Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 
WHAT IS ABSTRACTION IN JAVA
WHAT IS ABSTRACTION IN JAVAWHAT IS ABSTRACTION IN JAVA
WHAT IS ABSTRACTION IN JAVA
 
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
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
 
Java constructors
Java constructorsJava constructors
Java constructors
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
UML
UMLUML
UML
 
Object and class
Object and classObject and class
Object and class
 
Methods in java
Methods in javaMethods in java
Methods in java
 
Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
This keyword in java
This keyword in javaThis keyword in java
This keyword in java
 
Event handling
Event handlingEvent handling
Event handling
 

Similar to Oops in vb

Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
dheva 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

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

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.