I assume "it" refers to the compiler. In other words, you want to know why the code (you have posted) compiles, right? Compilers usually only check syntax and dependencies. As long as you have some subclass (of "AbstractClass") that implements method "f2()", you should be fine. So are you saying that your code compiles even without such a subclass? Cheers, Avi.
aadhi agathi
Ranch Hand
Joined: Apr 29, 2002
Posts: 263
posted
0
Originally posted by Avi Abrami:
I assume "it" refers to the compiler. In other words, you want to know why the code (you have posted) compiles, right?
yes!
Compilers usually only check syntax and dependencies. As long as you have some subclass (of "AbstractClass") that implements method "f2()", you should be fine.
To reformat, I can't do this(topic), in a concrete class. But is there any hidden meaning to allow this in an abstract class(i could guess only flow control).