Skip to main content

Features of OOPs

 OBJECT ORIENTED PROGRAMMING 


Meaning:-

Object-Oriented Programming (OOP) is a programming concept that uses classes and objects. 

It’s utilized to break down a software program into reusable code blueprints (called classes) that you may use to build specific instances of 

Object-oriented programming languages include JavaScript, C++, Java, and Python, to name a few. 

Features of OOPs:-

The various features of Object Oriented Programming (OOPs) are as follows:-

Fig: Features of OOPs 

Object 

An object is one of the important features of Object-oriented programming .An object represents a real-life entity which is an instance of a class. 

Objects have mainly two characteristics of state and behavior. The state is nothing but an identity of the object(data) 

Behavior describes the function(method) of the object.

Class

A class is another feature of object oriented programming.

A class can be defined as a blueprint from which we can create multiple objects. 

For Example:-

Any program in object oriented programming language like java we write should be written as a class which is yet another feature of OOPs.

Polymorphism 

Polymorphism is made up of two Greek words

i.e. "Poly" and "Morphs"  which means one entity many forms 


Polymorphism is of two types:-

(a) Runtime Polymorphism 

(b) Compile Time Polymorphism

Encapsulation

Encapsulation is also one of the important feature of Object Oriented Programming (OOPs).

Encapsulation means hiding internal details from user and shows only important ones.


Inheritance 

Inheritance is also another features of OOPs in which a child class also known as derived class inherits the features and properties of its parent class also known as base class.

Abstraction 

Abstraction is the process of hiding irrelevant information from the user.

Conclusion 

Hence these are the features of Object Oriented Programming Language (OOPs) which makes programming easy to use and implement 




Comments

Popular posts from this blog

Java: History

  HISTORY OF JAVA Java is a general-purpose and the most popular object-oriented programming language. Due to its simplicity and easy to learn features, it is the first choice of programmers today. In addition to the object oriented features, it also provides the features such as platform independence, security, multithreading, portability etc.  Java was developed by James Gosling in the early 1990's. Firstly it was called "Greentalk" by James Gosling, and the file extension was .gt. After that it was called "Oak" Oak Tree   Why JAVA Was Known As Oak? Oak is a symbol of strength and chosen as a nationality tree of many countries like the U.S.A, France, Germany etc. In 1995, Oak was renamed as "Java"  Versions of Java There are various versions of java released till now. These are           JDK Alpha and Beta (1995) JDK 1.0 (23rd Jan 1996) JDK 1.1 (19th Feb 1997) J2SE 1.2 (8th Dec 1998) J2SE 1.3 (8th May 2000) J2SE 1.4 (6th Feb 2002) J2SE 5.0 (30th Sep

HTML TAGS

  HTML  Html stands for HyperText Markup Language. The First version HTML was written by Tim Berners Lee in 1993. HTML TAGS:- HTML tags tells a web browser how to format text. You can use tags to format italics, line breaks, objects, bullet points, and more.  Some important HTML tags are as follows:- Paragraph Tag:- When we want to give headings in our html document text then we use heading tag. There are six levels of heading tags in html.These are:- Syntax:- <p>.........<\p> To write a paragraph in html document we use paragraph tag. It is a paired tag which means it contains both opening and closing tags. We can write our text inside <p>...</p> tag. Heading Tag:- To write a heading in our HTML document we use heading tag of html.The syntax of which is described below:- Syntax:-  There are 6 levels of heading in html document i.e. <h1>.........<\h1> <h2>.........<\h2> <h3>.........<\h3> <h4>.........<\h4> <h5&