SlideShare a Scribd company logo
Oops in vb
 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.
Oops in vb
 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
Oops in vb
 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.
Oops in vb
 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

PDF
CS8592-OOAD Lecture Notes Unit-1
PPTX
Data and functional modeling
PPT
OOAD UNIT I UML DIAGRAMS
PDF
4 pillars of OOPS CONCEPT
PPTX
Object Oriented Analysis & Design
PPTX
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
PDF
Unit 4- Software Engineering System Model Notes
PPTX
Distributed Objects and Remote Invocation
CS8592-OOAD Lecture Notes Unit-1
Data and functional modeling
OOAD UNIT I UML DIAGRAMS
4 pillars of OOPS CONCEPT
Object Oriented Analysis & Design
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
Unit 4- Software Engineering System Model Notes
Distributed Objects and Remote Invocation

What's hot (20)

PPTX
Classes, objects in JAVA
PPTX
Data types in java
PPTX
Java package
PPT
Basic concept of OOP's
PPTX
Introduction to java
PDF
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
PPTX
Tcp/ip server sockets
PPTX
Multithreading in java
PPTX
class and objects
PDF
Arrays in Java
PPTX
VB.NET:An introduction to Namespaces in .NET framework
PDF
PPTX
Functions in C
PPTX
Inheritance in java
PPTX
Data Manipulation Language
PPTX
Data types in c++
PDF
Strings in python
PPTX
Python Functions
PPTX
View of data DBMS
Classes, objects in JAVA
Data types in java
Java package
Basic concept of OOP's
Introduction to java
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Tcp/ip server sockets
Multithreading in java
class and objects
Arrays in Java
VB.NET:An introduction to Namespaces in .NET framework
Functions in C
Inheritance in java
Data Manipulation Language
Data types in c++
Strings in python
Python Functions
View of data DBMS
Ad

Similar to Oops in vb (20)

PPTX
PPTX
Application package
PPTX
Object Oriented Programming - Cheat sheet.pptx
PPTX
Object oriented programming
PPT
Basic concepts of oops
PPTX
Object Oriented Programming Concepts Using C++
PDF
object oriented programming concepts and explanation
PDF
Oop concepts classes_objects
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
PPTX
Object oriented programming
PDF
L1-Introduction to OOPs concepts.pdf
PPTX
What is OOP_ (Object Oriented Programming) (1).pptx
PPTX
Is2215 lecture2 student(2)
PPTX
SKILLWISE - OOPS CONCEPT
PPTX
Intro to object oriented programming.pptx
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
PPTX
Chapter1 introduction
PPTX
Application package
Object Oriented Programming - Cheat sheet.pptx
Object oriented programming
Basic concepts of oops
Object Oriented Programming Concepts Using C++
object oriented programming concepts and explanation
Oop concepts classes_objects
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
Object oriented programming
L1-Introduction to OOPs concepts.pdf
What is OOP_ (Object Oriented Programming) (1).pptx
Is2215 lecture2 student(2)
SKILLWISE - OOPS CONCEPT
Intro to object oriented programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptx
Chapter1 introduction
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
master seminar digital applications in india
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
Complications of Minimal Access Surgery at WLH
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial disease of the cardiovascular and lymphatic systems
master seminar digital applications in india
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Insiders guide to clinical Medicine.pdf
PPH.pptx obstetrics and gynecology in nursing
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
Complications of Minimal Access Surgery at WLH
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Computing-Curriculum for Schools in Ghana
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
Supply Chain Operations Speaking Notes -ICLT Program

Oops in vb

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