Question d’entretien chez BT Group

Should abstract class compulsorily posses abstract method?

Réponses aux questions d'entretien

Utilisateur anonyme

2 janv. 2016

An abstract class may or may not include Abstract methods.

3

Utilisateur anonyme

25 févr. 2016

Its not compulsory to have abstract method in abstract class, It varies from 0%-100% Abstraction.

Utilisateur anonyme

31 mai 2016

No need to give abstract method in abstract class compulsorily but if there is any concrete method then define it(give its implementation there itself). or if u dont want to give its implementation in parent class then u have to make the concrete method as "static" so that the sub class method can redeclare the parent class static method.