Вы находитесь на странице: 1из 1

Name: Andrison Quebral

Section: 10-Emerald

OOP Concept Meaning Example


Encapsulation Encapsulation in VB.NET. when you encapsulate an
Encapsulation is the exposure of object, you make its code and
properties and methods of an data internal and no longer
object while hiding the actual accessible to the outside except
implementation from the through a well-defined
outside world. In other words, interface.
the object is treated as a black
box—developers who use the
object should have no need to
understand how it actually
works.
Inheritance Inheritance in VB.NET. a class for a specific Visual Basic
Inheritance is the idea that one form and then derive a new
class, called a subclass, can be type of form from that class, the
based on another class, called a derived class will inherit all the
base class. ... Implementation base class's functionality, even
inheritance is the before you start adding code or
object-oriented feature that customizing the new form.
supports IsA relationships.
Containment supports HasA
relationships.
Polymorphism Polymorphism in VB.NET. if both person and employee
Polymorphism is the concept objects have a last_name
that different objects have property, a polymorphic
different implementations of procedure can use that property
the same characteristic. ... of both objects.
Given two different classes with
the same properties and
methods, a variable of type
object could be used to
instantiate an object of either
class.
Abstraction Abstraction refers to the act of as an object named employee is
representing essential features an abstraction of a real
without including the employee
background details or
explanations. Abstraction
defines way to abstract or hide
your data and members from
outside world. Classes use the
concept of abstraction and are
defined as a list of abstract
attributes.

Вам также может понравиться