I think it is time I start of Did you know facts to keep my blog site updated regularly. Let’s start with a Java one
- Did Ya Know that Java has virtual functions?
A virtual function is a member function that you expect to be redefined in derived classes. So yes Java does have virtual functions. Although functions in Java are virtual by default. But in essence what we cann method overriding is actually virtual functions. In order to prevent a method from being vitual just declare it as final.