You are on page 1of 6

iFour Consultancy

Basics of OOPS
•A markup language is a set of markup tags
•A markup language is a set of markup tags
Definition
 Programming language model organized around objects rather than "actions" and data
rather than “logic”. Historically, a program has been viewed as a logical procedure that
takes input data, processes it, and produces output data
 For a programming language to be a true OOP language, the language must meet the
following criteria:
 Abstraction
 Encapsulation
 Polymorphism
 Inheritance
Fundamentals
 Classes and Objects
 The terms class and object are sometimes used interchangeably, but in fact, classes describe the type of objects, while objects
are usable instances of classes. So, the act of creating an object is called instantiation. Using the blueprint analogy, a class is a
blueprint, and an object is a building made from that blueprint
 Abstraction
 Abstraction manages the complexities of a business problem by allowing you to identify a set of objects involved with that
business problem
 Encapsulation
 Encapsulation hides the internal implementation of an abstraction within the particular object
 Polymorphism
 It provides for multiple implementations of the same method. For example, different objects can have a Save method, each of
which perform different processing
 Inheritance
 The excitement of Visual Basic .NET lies in inheritance. Visual Basic 5 introduced the concept of interface inheritance, which
allows you to reuse the interface of a class, but not its implementation
What is a class?
 It can be defined as a template/blueprint that describes the behaviors/states that object
of its type support
 Example of simple class with member properties and member methods.
public class Circle
{
private decimal _radius;
public double radius {get{return _radius;} set{_radius = values} }
public double Area()
{
return 3.141592 * _radius * _radius;
}
}
What is Object?
 It represents a particular instance of a class. There can be more than one instance of an
object. Each instance of an object can hold its own relevant data
 Example of Simple instantiate of an object of the class in the example of previous slides
Circle objCircle = new Circle(); //here objCircle is an instance of a class
Circle objCir = new Circle(); //here objCir is an instance of a class
 Both the instantiation(Objects) holds the related data and members of the class and can
be used for different purposes
Abstraction
 Example
 Real world example “Laptop”
 When derived class inherited with abstract class; derived class must be override abstract class methods

You might also like