Romman Sabbirrommansabbir.com·Mar 27, 2024Object Oriented Programming (OOP) - Interface vs Abstraction (Java/Kotlin)[Cover Image by : Rafael de Nadai] In the world of programming, two key concepts often come up: Interface and Abstraction. Both are fundamental to object-oriented programming (OOP) and play crucial roles in designing robust and maintainable software ...Discuss·197 readsmaintainable software
Chinmay Singhblog.singhch.in·Jan 7, 2024Why you should almost never use Abstract ClassesImagine rules like this one defining a landscape, where maintainable code lives in the valleys. As you add new behavior, it’s like rain landing on your code. Initially you put it wherever it lands. Then you refactor to allow the forces of good design...DiscussComposition over inheritance
Guillermo Valenzuelaguillermovalenzuela.hashnode.dev·Jul 25, 2023Abstract class vs InterfaceIn C#, an abstract class and an interface are both used to define a set of methods, properties, and events that can be implemented by other classes. However, there are some key differences between them: Implementation: An interface only defines a co...DiscussC# Abstract ClassesC#
Manik Mehtadmanika27.hashnode.dev·Apr 24, 2023Designing a Car in Java (Interfaces Explained)Today we will design a car in Java by using Interfaces. Firstly I should define What interface is and How to use it. As we know that in Java we cannot have two parent classes of a single child class, having two parent is called Multiple Inheritance. ...Discuss·58 readskunalkushwaha
Kishore Rameshkishoreramesh.hashnode.dev·Jan 4, 2023Deep dive into Abstract Class vs InterfaceAbstract class what is an abstract class? A class that is not complete is abstract. "Not complete" means methods or functions inside this class that don't have a body or definition. Limitation of abstract class we can't create objects of an abstract ...Discuss·4 likesJava
Ishita Ghoshishitaghosh.hashnode.dev·Nov 5, 2022Abstract Classes Vs Interfaces in Java: When to use What?Before learning the difference between the two, we must know the meaning of Abstraction. Abstraction It simply means hiding unnecessary data about implementation and only showing the functionality to the users. The most common example of abstraction ...Discuss·17 likes·112 reads2Articles1Week
Khanh Phanclphan.com·Jul 23, 2022Abstract class and Interface in Python[Draft] Abstract Class Abstract class contains abstract methods and the methods don't contain implementation. All the abstract methods have to implement in their subclasses if not failing Type Error will be raised. ABCMeta module, from abc - abstract...Discuss·180 readsPython
Shreyansh Sinharookie02.hashnode.dev·Jul 19, 2022Abstract Classes vs InterfacesAbstract Class Abstract class can be thought of as an incomplete class which can't be instantiated. When we say incomplete class what we mean is that the class contains methods which are not implemented in the base abstract class. Rather another clas...Discuss·5 likes·364 readsC#