Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

What is OOPs? OPPs abbreviated as an Object Oriented Programming Language.

. Object Oriented Programming (OOP) is a Programming methodology that uses object to design applications and computer programs. Object-Oriented Programming (OOP) is a software development paradigm that suggests developers to split a program in building blocks known as objects. The OOP paradigm allows developers to define the object's data, functions, and its relationship with other objects. There are four major pillar of OOPS. o Encapsulation o Abstraction o Polymorphism o Inheritance The ability to define a class and create instances of classes is one of the most important capabilities of any Object Oriented Programming. What is Object? In everyday life, an object is anything that is identifiably a single material item i.e. a Car, a book, a document etc. In technical language Object is called as an instance of class. What is Class? A building block that contains the properties and functionalities that describe some group of objects. There are 2 kinds of classes: The built-it classes that come with the .NET Framework, called Framework Class Library, and the programmer definedclasses which we create ourselves. The class contains data (in the form of variables and properties) and behaviors (in the form of methods to process these data). A Class is a Blueprint from which individual objects are created. In OOP you program a class as a template for a specific object or groups of objects that will always have the same features.
The difference between a struct and a class is that the former is a value type and the latter is a reference type.

Inheritance is an extremely powerful concept that allows one type to subclass another type. Using inheritance, its possible to define some functionality in the base class, which is then modified or defined in a derived class. The three types that support inheritance are defined as follows: class: A generic type that supports most inheritance operations. A class can define methods, data members, and most things that .NET classes need to implement. interface: A special class type that doesnt support an implementation. Interfaces are used to define a contract in the form of a type. struct: A special type of class thats a value type and considered to be a sealed class. (A sealed class is a class that can be used, but not subclassed from. In a value type, contents of the type are stored on the stack.)

You might also like