See more
…sed to initialize the state of an object, and it gets invoked at the time of object creation. Rules forconstructor are:
Polymorphism is nothing butassigning behavior or value in a subclass to something that was already declared in the main class. Simply, p…