What are the four basic principles of OOPS?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Object Oriented programming (OOP) is a programming paradigm that provides computer software developers and programmers with the means of developing code to make the most effective use of OOPS. OOPs has developed from OO, which focuses on data and OO, which focuses on behavior. The four basic principles in OOP are: Abstraction, Encapsulation, Inheritance and Polymorphism. Abstraction is used when an abstraction is created for a group of OOP objects that share a general purpose.
Abstraction: OOPs use abstraction when they create an abstraction for a group of OOPS objects that share a general purpose.
Encapsulation: OOPs encapsulate the data and behavior into their OOPS objects in order to provide technical protection against unauthorized access or changes.
Inheritance : Objects are created by class hierarchies where inheritance allows OO programmers to take advantage of properties, behaviors, etc., which have been implemented before them.
Polymorphism: is used when OOP offers different implementations for each method in its protocol definition while providing only one common interface specification through which all clients interact with it. This enables polymorphic behavior over multiple types of classes without having to bind together both type specific code and client specific code within individual OOPS objects. OOPs uses polymorphism to allow OO programs to work together as a unit by using different OOPS classes that implement the same interface specification without needing specific knowledge of each other.