OOP

4 Pillars of OOPs in Java

As programmers work with real-life entities, object-oriented programming allows programmers to achieve the same. Objects are used to store knowledge, data, task, state, and other different OOP tasks and methods.  This article is going to explain the fundamental four pillars of object oriented programming in java. Image Source 1. Encapsulation Encapsulation is achieved when the …

4 Pillars of OOPs in Java Read More »

Advantages and Disadvantages of Inheritance in Java

Inheritance is one of the pillars of the Java programming language. Learning OOP (Object Oriented Programming) without knowing and understanding the concept of Inheritance, its pros and cons are incomplete. Inheritance is a process in which a class acquires all the data members and its parent class methods. The basic idea behind it is that …

Advantages and Disadvantages of Inheritance in Java Read More »

Difference between Constructor and Method in Java

Java is an Object-Oriented Programming language. Therefore, the data and the member functions in Java are present in the classes. The classes in Java contain both constructors and methods as well. Let’s see in detail about methods and constructors and their differences. Constructor The purpose of constructors is to initialize the objects, which are the …

Difference between Constructor and Method in Java Read More »

What is Object Oriented Paradigm in Java?

The term Programming paradigm means the methodology for writing program codes. In general, two paradigms govern how you can construct a program. These two ways are: a process-oriented model an object-oriented model Many programming languages support both the paradigms like python. Python allows the users to code using both process-oriented and object-oriented methodologies. However, Java …

What is Object Oriented Paradigm in Java? Read More »

Java Hybrid Inheritance With Example

Hello everyone, In this tutorial, we are going to learn about Hybrid inheritance in Java. Before diving right into hybrid inheritance let us first quickly look at some other types are inheritance commonly used in Java. As you may know, Java typically uses four types of inheritance: Single Inheritance Multilevel Inheritance Hierarchical Inheritance Multiple Inheritance …

Java Hybrid Inheritance With Example Read More »