Tuanh.nettuanhnet.hashnode.dev·Oct 8, 2024Understanding Functional Interfaces in Java: Why They Matter and How to Use ThemSource: Understanding Functional Interfaces in Java: Why They Matter and How to Use Them 1. What is a Functional Interface? A functional interface in Java is an interface that has exactly one abstract method. This single-method constraint allo...Discussfunctional
Akash Dasakashdas7781.hashnode.dev·Oct 7, 2024Extends vs Implements in Java: A Comprehensive GuideHave you ever thought about the difference between the extends keyword and the implements keyword? Have you noticed where these keywords are used? Now, don’t just say, “In Java, of course!” Just kidding! Obviously, we use these keywords in Java, but ...DiscussJava
Ritik Chandelstaticnon-static.hashnode.dev·Oct 1, 2024Abstract Classes and Interfaces in JavaIn Java, Abstract Classes and Interfaces are powerful tools for creating structured and reusable code. Understanding how to use them effectively helps to create better-designed applications. Let’s dive into the details of both concepts. Abstract Clas...Discuss·2 likesJava
pramod reddypramodreddy.hashnode.dev·Sep 26, 2024Interfaces in Java tips.Main uses: Provides complete abstraction defines only what class needs to be done, but not how it will do. polymorphism : runtime it can be decided which implements class object can be called. multiple inheritance. Rules: Interface can only be public...DiscussJava
Rohit Gawanderohit253.hashnode.dev·Sep 25, 2024Chapter 28:Mastering Inner Classes and Interfaces in Java: A Comprehensive GuideIntroduction In this post, I, Rohit Gawande, will take you on a journey through inner classes and interfaces in Java. We will start by revisiting the core concepts of Object-Oriented Programming (OOP), which are fundamental to understanding the struc...Discussinnerclass
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Abstract Factory PatternThe Abstract Factory Pattern is another creational design pattern that provides an interface for creating families of related or dependent objects without specifying their concrete classes. Instead of just creating one type of object, like in the Fac...Discuss·1 likeTypeScript
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Factory Design PatternThe factory design pattern is a creational design pattern that provides an interface for creating objects in a superclass but allows subclasses to change the type of objects that will be created. Instead of calling the constructor directly, we use a ...Discuss·1 likeFactory Design Pattern
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Sep 1, 2024Singleton Design PatternThe Singleton pattern is classified as a creational design pattern because its primary purpose is to control the creation of objects. Specifically, the Singleton pattern ensures that a class has only one instance and provides a global point of access...Discuss·1 likeTypeScript
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.hashnode.dev·Aug 25, 2024Interface Segregation Principle (ISP)The Interface Segregation Principle (ISP) is one of the SOLID principles in object-oriented design. It states that a class should not be forced to implement interfaces it doesn't use. Instead, it's better to have multiple, smaller, and more specific ...Discuss·1 likeinterface
Carmine Tambasciablog.allaroundjavascript.com·Aug 25, 2024Difference between extending and intersecting interfaces in TypeScript?Have you ever found yourself thinking in a complex project asking this question, then in this article I will try to answer with examples Let's say the following type is defined: interface Shape { color: string; } Now, maybe we need a way to abstra...DiscussTypeScript