This is a very important concept and should be understood thoroughly. Let us get back to our example. Thus, the student class is endowed with multi-dimensional behavior. Since these two interfaces are abstract in their context, they will simply contain the basic methods that will characterize those activities that may broadly come under their umbrella. As there are different types of games and instruments, it is the responsibility of the student classes to implement these methods appropriately.
Abstract classes stand somewhere in-between interfaces and base parent classes.
We also know that before performance or practice, this instrument must be taken out of the box and arranged appropriately. To distinguish between those methods that are implemented and those that are not, we need to explicitly declare those methods without implementation as abstract methods. Like interfaces, abstract classes also cannot be instantiated and cannot contain any constructor method. Copyright Cyber India Online Limited . All rights reserved.