virtual : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

virtual
Virtual in C++ means overrideable. In Java all methods are assumed overrideable unless marked final (or private which implies final). Virtual has yet another meaning in C++. When you inherit from several classes, which may share a common subclass, in C++ you have to decide how many copies of the base class variables you want — a shared or separate embedded in this new object. virtual refers to using a single shared copy. In Java you can inherit from only one class, so the problem never comes up.

This page is posted
on the web at:

http://mindprod.com/jgloss/virtual.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\virtual.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.138.69.39]
You are visitor number