Sohag Hasannotes.sohag.pro·Oct 31, 2024Interfaces and Abstract Classes in PHP: Your Friendly Guide to Object-Oriented ProgrammingInterfaces and Abstract Classes in PHP Introduction Imagine you're designing a transportation system for a city. You want different types of vehicles to follow certain rules and have specific capabilities. This is exactly where interfaces and abstrac...DiscussTips & TricksInterfaces
Akash Dasakashdas7781.hashnode.dev·Oct 6, 2024Understanding Interface vs Abstract Classes in Java and Best Use CasesI hope you guys ever heard about the difference between the abstract classes and the interfaces . This is the key concept of Object oriented programming and mostly used while designing flexible and maintainable applications. Before diving into the di...Discuss·1 like·30 readsJava
Nikhil AkkiPronikhilakki.in·Oct 5, 2024Implement an Abstract Class in Go!Well in Go, there is no direct equivalent of Python's abstract classes, but you can achieve similar functionality using interfaces and struct embedding. Here's how you can replicate the behavior of an abstract class in Go. Python Abstract Class Examp...Discuss·31 readsGogolang
emptycodesemptycodesalsowrites.hashnode.dev·Aug 29, 2024The Truth Behind Every 'foreach' LoopIn the world of C#, one of the most common and elegant constructs is the foreach loop. It’s simple, readable, and effective for iterating over collections. But have you ever wondered what makes this magic happen? The secret lies in the IEnumerable<T>...Discuss·1 like·158 readsforeach
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...Discuss·45 readsTypeScript
vikash kumardevopswizard.hashnode.dev·Jul 27, 2024Virtual Networking: From Basics to Docker and BeyondHey , fellow tech enthusiasts! If you're diving into the world of Kubernetes, you probably know that networking is a crucial component. But what if you're not quite familiar with the nuts and bolts of networks? Don't worry! This guide is here to help...DiscussLinux for DevOpsVirtual Networking
Jit Mitraeclair.hashnode.dev·Jun 7, 2024Types v/s Interfaces in TypeScript - A DilemmaWhen venturing into TypeScript, many encounter the dilemma of whether to employ Types or Interfaces, as both appear to fulfill the same function: predefining data or object types for future use. The TypeScript official documentation recommends priori...Discuss·45 readsTypeScript
Vikas Guptavikasfeedingdotnet.hashnode.dev·May 31, 2024Exploring C# 12: Latest Features and EnhancementsAs developers, we constantly seek ways to improve our productivity and code quality. Microsoft's C# language has evolved significantly over the years, introducing new features with each iteration to streamline development processes and enhance functi...Discuss·111 readsc#12
Chetan Dattachetan77.hashnode.dev·May 23, 202412 Java - Interfaces (Functional & Lambda)What is Functional Interface? If an interface contains only 1 abstract method, that is known as Functional Interface. Alos known as SAM interface (Single Abstract Method). @ FunctionalInterface keyword can be used at top of the interface(But its o...Discuss·58 readsJavafunctional interfaces
Chetan Dattachetan77.hashnode.dev·May 19, 202411 Java - Interfaces (Latest Versions)1. Default Method (Java 8) Issue Before Java8, Interface can have only Abstract method. And all child classes has to provide abstract method implementation. public interface Bird{ public void canFly(); } public class Eagle implements Bird{ ...Discuss·59 readsJavaInterfaces