Pergunta de entrevista da empresa BT Group

Should abstract class compulsorily posses abstract method?

Respostas da entrevista

Sigiloso

2 de jan. de 2016

An abstract class may or may not include Abstract methods.

3

Sigiloso

25 de fev. de 2016

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

Sigiloso

31 de mai. de 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.