Paradigm of Object Oriented Programming
Object Oriented Programming, often known as OOP, is a technique of making a program based on objects and what those objects can do. Object-oriented programs consist of objects that interact with each other to complete a task.
Why do you need OOP?
Because the code is broken down to make it easier to manage. Breakdown based on the objects in the program. Implementing programs of any size are recommended because it is easier to debug. Procedural programming arranges programs in linear sequences that work from top to bottom. A collection of stages that execute after another has run. Suitable for small programs that contain little code. It is not recommended to be implemented in large programs because it is challenging to manage and debug.
OOP has the following characteristics:
- Abstraction. It is finding important things in an object and ignoring random things.
- Encapsulation. Encapsulation is the process of packaging data objects along with their methods.
- Inheritance. The process of creating a new class (subclass/derived class) by inheriting the characteristics of an existing class (superclass/parent class), plus the new class’ unique features.
- Reusability. Reusability is the ability to reuse existing classes.
- Polymorphism. Polymorphism comes from Greek which means many forms.
Usually, in understanding OOP, you need to use a tool like NetBeans IDE. Therefore, it needs a process to understand the immediate environment and how to compile and run the program, then compare structured programming with object-oriented programming by making programs in Java.
Programming Language
- The computer works like switching and only recognizes 0 and 1.
- Humans do not speak and understand languages 0 and 1.
- Need a programming language as a mediated conversation between computers and humans.
- The programming language is converted into a language understood by the computer by using an interpreter or compiler.
Read also : Exception on Object-Oriented Programming with Java
Programming Language Level
- Low Level Programming Language (Assembler)
- Intermediate Level Programming Language (C, Pascal, Fortran)
- High Level Programming Language (Java, C++, C#)
Java Language (Compiler + Interpreter)
Compiler : Compile the source code into an executable file
Interpreter : Compile and run source code directly
Programming viewpoints and styles relate to how a problem is formulated in a programming language. If Functional Programming is the sequential order of functions (Scheme, Lisp) then Procedural Programming is troubleshooting based on work procedures gathered in a programming unit called functions (C, Pascal). Therefore, Object-Oriented Programming is Collection of interacting objects then class is a programming unit (Java, C#, C++).
Why Java?
- Open Source
- Easy and familiar in making programs with the concept of Object-Oriented Programming
- In fact, java is the standard programming language used in education
- Architecture neutral (platform independent)
- Rank in TIOBE Index
Read also : Fundamentals of Object Oriented Programming
Java History
- James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991
- The language was initially called Oak after an oak tree that stood outside Gosling’s office
- It went by the name Green later, and was later renamed Java, from a list of random words
- Gosling aimed to implement a virtual machine and a language that had a familiar C/C++ style of notation
- Sun Microsystems released the first public implementation as Java 1.0 in 1995
- On May 8, 2007, Sun finished the process, making all of Java’s core code available under free software/open-source distribution terms (GNU Public License)