© 2023 Hashnode
#oops
In Java, the parent class object must be initialized before the child class object because the child class object inherits the properties and methods of the parent class, and the child class object ca…
In sequence with the previous blog on constructors, we also need to understand one more concept which is very mandatory to learn i.e Constructor Overloading. We have seen that constructors are used to…
In the previous blog, we have seen Objects and Classes in Java, how to define classes, the creation of objects, etc. So In this blog, we will cover constructors, various types of constructors, the 'th…
Oops is object-oriented programming. #WEMAKEDEV Programming: I think we all are familiar with this word. Oriented: It revolves around as- Object: The language that revolves around the object. So the most important thing about OOPS is t…
An exception is an unwanted or unexpected event that occurs during the execution of the program that disrupts the normal flow. class Test { public static void main(String[] args) { System.out.println("1"); System.out…
Python is an object-oriented programming (OOPs) language in which Classes are integral. Classes are so powerful in object-oriented programming that we can perform high-level tasks like inheritance, ab…
"this" keyword is the reference variable that refers to the current object Consider the code below: class Test { int i; void setValue(int x) { i=x; } void show() { System.out.println(i); } } class…
Encapsulation is a method of wrapping data and methods together as a single unit. In encapsulation, the variables of a class are hidden from other classes and can be accessed only through the methods of their current class. This concept is …
The objective of this blog will be to drive you through one of the important concepts in our coding journey, so the topic is Object Oriented Programming(OOPs). Before moving forward make sure you know…
Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance. There are two types of polymorphism in Java: compile-time polymorphism runtime…