what are the oops concepts and explain them

sam
sam
134 Points
62 Posts

What are the basic oops concepts and explain them?

Views: 8122
Total Answered: 1
Total Marked As Answer: 0
Posted On: 04-Aug-2015 03:23

Share:   fb twitter linkedin
Answers
Smith
Smith
Participant
360 Points
110 Posts
     

There are four concepts of OOPs(Object Oriented Programming System):

  • Inheritance
  • Abstraction
  • Encapsulation
  • Polymorphism

Inheritance:
Process of Aquiring properties from one class to another without changes is known as Inheritance. In other word, the ability of a new class to be created, from an existing class by extending it, is called inheritance.

Abstraction:
Abstraction reduces complexity by hiding non essancial details and showing only essancial details.

Encapsulation:
Wrapping up of data and methods in to a single unit is called as encapsulation.
The encapsulation is mainly achieved by creating classes, the classes expose public methods and properties. A class is kind of a container or capsule or a cell, which encapsulate a set of methods, attribute and properties to provide its indented functionalities to other classes.

Polymorphism:
Polymorphisms is a generic term that means 'many forms'. More precisely Polymorphisms means the ability to request that the same operations be performed by a wide range of different types of things.
The polymorphisms is achieved by using many different techniques named method overloading, operator overloading, and method overriding.

 

Posted On: 05-Aug-2015 02:54
banner

Blog

Active User (2)

 Log In to Chat