What happens when you type google.com in your browser?Introduction This question is a classic and still widely used interview question for many types of software engineering positions. It is used to assess a candidate’s general knowledge of how the web stack works on top of the internet. One important g...Jan 7, 2024 · 14 min readrichard.hashnode.dev
Polymorphism in JavaThe word Polymorphism is a combination of two Greek words: Poly which means many and Morph which means forms. What if we want our derived class to inherit a method from the base class and have a different implementation for it? That is when polymorph...Jun 5, 2023 · 4 min readrichard.hashnode.dev
Inheritance in JavaInheritance is an important OOP principle because it allows you to create a new class from an existing class. The existing class is known as the base class, superclass, or parent class and the new class is the derived class, sub-class, or child class...Jun 5, 2023 · 6 min readrichard.hashnode.dev
Encapsulation in JavaIn a previous article, we talked about how in Java , it is advisable to have the member variables be private and the methods public. This is because it prevents users and other classes from interfering with the data in the class. It also allows for i...Jun 5, 2023 · 3 min readrichard.hashnode.dev
Java ConstructorsOne of the main functions of classes is to be able to create objects from the class. This is where constructors come in. As the name suggests, constructors define how to construct objects from the class. Constructors don't need a return type. It is g...Jun 5, 2023 · 4 min readrichard.hashnode.dev