hi everyone.. i am just clearing some concepts can you tell me please why abstract class can have constructor? as we cant create its objetc why we need constructor in abstract class? please can you tell me with example?
Abstract classes can be extended by other classes and then when the constructor of the Subclass is being invoked- it implicitly calls the constructor of the Super class ie the Abstract class.