SPIRO THE TECH GURU

Back

Can you have virtual functions in Java?

By Admin on

virtual functions in Java:

Yes, all functions in Java are virtual by default.In Java, all non-static methods are by default "virtual functions." Onlymethods marked with the keyword final, which cannot be overridden, along with private methods, which are not inherited, are non-virtual

SPIRO Google Plus