Having interface-like declarations within a class is common;
it makes the class abstract, but the other way round is at odds
with the interface concept. Interfaces declare signatures but
are not allowed to include implemented behaviors.
Jim Hoglund wrote:Having interface-like declarations within a class is common;
it makes the class abstract, but the other way round is at odds
with the interface concept. Interfaces declare signatures but
are not allowed to include implemented behaviors.
Why does this question come up?
@Jim I was asked in an interview..... I was totally blank..