Following are the important differences between an abstract class and a concrete class. Sr. No. Key Abstract Class Concrete Class 1 Supported Methods Both abstract and concrete methods can be found in an abstract class. Only concrete methods are allowed in a concrete class. The class is abstract, even if it only has one abstract […]
June 11, 2022 | Java | No comments
Comparison between a normal or regular class and a static nested class. S.NO Normal/Regular inner class Static nested class 1. Without an outer class object existing, there cannot be an inner class object. That is, the inner class object is always associated with the outer class object. There may be a static nested class object […]
June 11, 2022 | Java | No comments
As we all know, abstraction refers to hiding the internal implementation of a feature and only giving the users the functionality. i.e. how it works (showing), what it does (showing) (hiding). Because an abstraction is achieved using both abstract classes and interfaces, Interface and Abstract classes are needed prerequisites. Let’s see the differences between them. […]
June 3, 2022 | Java | No comments