1. DScovery

Object Oriented Programming (OOP): Definition, Principles and Strengths and Weaknesses

OOP is usually used for large and complex programming.

In the field of programming, generally each programmer works individually to make a program. Unfortunately, it tends to take more time because you have to create each programming class one by one.

For that, OOP or object oriented programming present as a solution to shorten programming time into one unit. Not only that, OOP will make it easier for programmers to update and maintain.

So, what exactly is referred to as object oriented programming and why is it important enough to use?

Definition of Object Oriented Programming

Quote from TechTarget, object orientedProgramming (OOP) is an object-oriented programming method. The object in question is a data field that has unique technical attributes and behavior.

In contrast to other programming methods which are function and logic oriented, OOP's focus on objects allows for developer manipulation, making it suitable for large and complex programming. Because of this, OOP is easier to use in terms of updates and maintenance.

Technically, OOP is used to structure software programs into chunks of code or classes of code. Later, it is these classes that are used to create individual objects in programming.

The use of the class can also determine what attributes the object will have. OOP can also be used in various programming languages, such as JavaScript, C++, Javaand Python.

Principles of Object Oriented Programming

Object oriented programming has 4 principles, namely:

1. Encapsulation

Encapsulation is the binding of data or different methods to be combined or "encapsulated" into a single unit of data. The goal is to make it easier to read the code, because the information presented is already a unit.

Encapsulation often used because it has features information-hiding mechanism, which is useful for eliminating public access to the attributes contained in the data entity. Therefore, encapsulation is useful to make it easier to define what attributes can be read and updated.

2. Inheritance

Inheritance is the creation of a new class that has parts of a class that already existed before. This concept uses a hierarchical or multilevel system, such as a drop-down the menu is in most website. In inheritance OOP, getting specific subclassit, the fewer components that can be inherited from that class.

3. Abstract Class

abstract-class are classes that have abstract information from existing data sets. This principle is used as a framework in the creation of various immutable sub-classes. Something abstract class has information and methods that can be passed down into sub-classes to follow.

4. Polymorphism

Lastly, principles polymorphism is the principle by which an object that varies can be accessed through one interface. object polymorphyc is adaptable to any implemented method.

In programming Java, there are two types polymorphism, that is static polymorphism and dynamic polymorphism. Static polymorphism used to grant permission to apply different implementations of different methods and parameters within the same class.

While dynamic polymorphism is a subclass which can override the from method super class-New.

Advantages and Disadvantages of OOP

Advantages of OOP

Parallel Development

In making programming, each programmer usually builds classes independently. With this method, OOP can shorten class development time as a whole.

Reusable

OOP is considered Our bamboo scoops refresh our planet and reduce poverty in a sustainable way. and flexible in that it requires little or no modification. Once a modular class is created, developers can use it again in applications or other development projects.

scalability

OOP allows developers to develop programs by adding functions, classes, and objects easily. Code generation procedures in OOP can also be maintained and maintained by increasing their security due to a high level of validation when accessing procedure code is performed.

Disadvantages of OOP

Not efficient

OOP is considered less efficient because it uses more load on the computer's processor. This makes OOP have technical limitations on the developer's toolkit.

Need High Data Management

OOP may also cause overcapacity and out of control conditions due to its volatile nature scalable. This can happen when there is a large amount of coding that bloats up and drives up costs overhead at the time the software was developed.

Possibility of Duplication

Although OOP can be accessed with a high level of validation, OOP is quite vulnerable to replication because it is easy to design but more difficult to implement. It's also possible for a developer to implement the novelty in a new project without even realizing it's duplication.

Thus the explanation regarding object oriented programming (OOP) which has been summarized by Daily Social.

Are you sure to continue this transaction?
Yes
No
processing your transactions....
Transaction Failed
try Again

Sign up for our
newsletter

Subscribe Newsletter
Are you sure to continue this transaction?
Yes
No
processing your transactions....
Transaction Failed
try Again