Binding (or wrapping) code and data together into a single unit are known as encapsulation. For example, a capsule is wrapped with different medicines. Java Encapsulation reduces the code redundancy easily. A java class is the example of encapsulation. Java
Category: Java OOP
Java Abstraction
Hiding internal details and showing functionality is known as abstraction. For example phone call, we don’t know the internal processing. The user will have the information on what the object does instead of how it does it. In Java, abstraction
Java Polymorphism
If one task is performed in different ways, it is known as polymorphism. For example: to convince the customer differently, to draw something, for example, shape, triangle, rectangle, etc. In Java, we use method overloading and method overriding to achieve
Java Inheritance
We will one of the most important concept of JAVA OOP is java inheritance. When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It provides code reusability. We group the “inheritance
Java Objects and Classes
In this article, we will learn about objects and classes with real-life examples. Java objects and classes are the main components of JAVA. Object Everything in Java is associated with classes and objects, along with its attributes and methods. For
Fundamentals of object-oriented programming in Java
Today, we will learn the fundamentals of Object Oriented programming programming. First of all, we have to know the meaning of Object and then we go through the others part. so,Java is an object-oriented programming language.It is based on the
Read More Fundamentals of object-oriented programming in Java
Guessing Game in JAVA using OOP concept
We will build a number guessing game to generate a random number. In the last episode, I discussed Java objects and classes. To understand objects and classes, We will create a funny game name java guessing game in this episode