Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

Can anyone tell me how to write virtual methods and to implement it in Java? 

1 Answer

0 votes
by (19.7k points)

A good explanation from wikipedia

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

Interested in Java? Check out this Java Certification by Intellipaat.    

Related questions

0 votes
1 answer
asked Mar 3, 2021 in Java by Jake (7k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...