Domanda di colloquio di BT Group

Should abstract class compulsorily posses abstract method?

Risposte di colloquio

Anonimo

2 gen 2016

An abstract class may or may not include Abstract methods.

3

Anonimo

25 feb 2016

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

Anonimo

31 mag 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.