Java Polymorphism
Polymorphism in Java with example Polymorphism is one of the OOPs feature that allows us to perform a single action in different ways. For example, lets say we have a…
Polymorphism in Java with example Polymorphism is one of the OOPs feature that allows us to perform a single action in different ways. For example, lets say we have a…
Overview You must have seen public, private and protected keywords while practising java programs, these are called access modifiers. An access modifier restricts the access of a class, constructor, data…
A class that is declared using “abstract” keyword is known as abstract class. It can have abstract methods(methods without body) as well as concrete methods (regular methods with body). A…
Difference between method Overloading and Overriding in java In this tutorial we will discuss the difference between overloading and overriding in Java. If you are new to these terms then…
Method Overloading is a feature that allows a class to have more than one method having the same name, if their argument lists are different. It is similar to constructor…
Declaring a method in sub class which is already present in parent class is known as method overriding. Overriding is done so that a child class can give its own…
Package In Java A package is a namespace that organizes a set of related classes and interfaces. Conceptually you can think of packages as being similar to different folders on…
What Is an Interface? As you've already learned, objects define their interaction with the outside world through the methods that they expose. Methods form the object's interface with the outside…
What Is Inheritance? Different kinds of objects often have a certain amount in common with each other. Mountain bikes, road bikes, and tandem bikes, for example, all share the characteristics…
What Is a Class? In the real world, you'll often find many individual objects all of the same kind. There may be thousands of other bicycles in existence, all of…