virtual function

virtual function

can we have virtual functions in java?
View Answers

October 29, 2010 at 5:46 PM

Hi,

Here is the answer,

Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has only coded in Java. Virtual functions or virtual methods are functions or methods that will be redefined in derived classes.

Thanks.









Related Tutorials/Questions & Answers:
virtual function
virtual function  Explain virtual functions in Java
virtual function
virtual function  can we have virtual functions in java
Advertisements
function
function  difference between function overloading and operator overloading
virtual world
virtual world  i want a program like consider 10 * 10 array. first we are in the middle i.e 5 * 5 position . we have to ask the user that in which direction he is interested to move.i.e east or west or north or south. the output
Uninstall Oracle Virtual Box
Uninstall Oracle Virtual Box  Hi, Is there any video of uninstalling Oracle Virtual Box? Thanks
java virtual machine
java virtual machine  please give some detail about JVM
Java Virtual Machine
Java Virtual Machine  What is Java Virtual Machine? Are JVM different for each OS? Thanks   Hello, JVM or Java Virtual Machine is run... more at Java Virtual Machine Technology. Thanks
Non-virtual Methods in Java - java tutorials
methods, a virtual function is function whose behavior can not be overridden by inheriting the class. In C++ programming you can make a function virtual...() Called The better way to achieve the non-virtual function in java
Virtual Fuction invokation in java
Virtual Fuction invokation in java  Please help me. If i have create a Employee class,which is the super class of Manager. And I create an object... is virtual method in java?Please explain
Virtual Fuction invokation in java
Virtual Fuction invokation in java  Please help me. If i have create a Employee class,which is the super class of Manager. And I create an object... is virtual method in java?Please explain
Java Virtual Machine Technology
Java Virtual Machine Technology Java development kit termed as  JDK have more than one implementation of the JVM. Java HotSpot Client VM also termed.... This is the Virtual machine implementation comes with JDK.It is basically designed to cut
virtual on screen keyboar - Swing AWT
virtual on screen keyboar  sir i need shift key operation code in my project program of virtual keyboard can uplz send
Java Virtual Machine
Java Virtual Machine       In this section, you will learn about the java virtual machine (JVM) and how to work? Java Virtual Machine (JVM) Java Virtual Machine is a set of computer
ModuleNotFoundError: No module named 'virtual-ipm'
ModuleNotFoundError: No module named 'virtual-ipm'  Hi, My Python... 'virtual-ipm' How to remove the ModuleNotFoundError: No module named 'virtual-ipm' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'virtual-less'
ModuleNotFoundError: No module named 'virtual-less'  Hi, My Python... 'virtual-less' How to remove the ModuleNotFoundError: No module named 'virtual-less' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'virtual-microbes'
ModuleNotFoundError: No module named 'virtual-microbes'  Hi, My... named 'virtual-microbes' How to remove the ModuleNotFoundError: No module named 'virtual-microbes' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'virtual-node'
ModuleNotFoundError: No module named 'virtual-node'  Hi, My Python... 'virtual-node' How to remove the ModuleNotFoundError: No module named 'virtual-node' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'virtual-scanner'
ModuleNotFoundError: No module named 'virtual-scanner'  Hi, My... named 'virtual-scanner' How to remove the ModuleNotFoundError: No module named 'virtual-scanner' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'virtual-touchpad'
ModuleNotFoundError: No module named 'virtual-touchpad'  Hi, My... named 'virtual-touchpad' How to remove the ModuleNotFoundError: No module named 'virtual-touchpad' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'walt-virtual'
ModuleNotFoundError: No module named 'walt-virtual'  Hi, My Python... 'walt-virtual' How to remove the ModuleNotFoundError: No module named 'walt-virtual' error? Thanks   Hi, In your python
Ho to get virtual key code.
Ho to get virtual key code.  Hi How to get virtual key code from button.I made on screen keyboard.But it not proper work for windows ,shift,alt and ctrl key. pls suggest me
What is Virtual Appliance?
We are already habituated and prepared to see everything virtual and ephemeral... is presented by this emerging tech environment called as virtual appliance or virtual appliance integrated ecosystem as it is also referred combining its
how to remove virtual environment in anaconda
how to remove virtual environment in anaconda  Hi, I am using Anaconda python for my machine learning projects. I have created many virtual environments in past and I don't need them anymore. So, I want to deleted these virtual
How to display windows virtual keyboard
How to display windows virtual keyboard  Hi, I have a jsp file which contains my website design. In my jsp website design, there's a button. I need to display windows virtual keyboard when i press the button. how to do
how to remove virtual environment in anaconda
how to remove virtual environment in anaconda  Hi, I am using Anaconda python for my machine learning projects. I have created many virtual environments in past and I don't need them anymore. So, I want to deleted these virtual
Why Virtual Dedicated Hosting?
Why Virtual Dedicated Hosting? These days Virtual Dedicated Hosting has become cheap and many hosting companies provides the Virtual Dedicated servers. In this article I will explain why you should choose Virtual Dedicated Web
Virtual Hosting
In case of Virtual Web hosting same computer (server) is used to host..., it is much economical to run the Virtual Web hosting server for the clients. This article is introducing you about the Virtual Web hosting. There are many
Java Virtual Machine
Java Virtual Machine The Java Virtual Machine is a software package that comes with the JRE or JDK. It is a virtual machine which is responsible for running... Virtual Machine provides the execution environment for the Java programs
anaconda python create virtual environment
anaconda python create virtual environment  Hi, I want to create virtual environment in my Anaconda Python installation. What are the steps for creation of virtual environment in anaconda python?   Hi, Here are steps
ModuleNotFoundError: No module named 'cloudshell-traffic-virtual'
ModuleNotFoundError: No module named 'cloudshell-traffic-virtual'  Hi...: No module named 'cloudshell-traffic-virtual' How to remove the ModuleNotFoundError: No module named 'cloudshell-traffic-virtual' error? Thanks
ModuleNotFoundError: No module named 'django-virtual-pos'
ModuleNotFoundError: No module named 'django-virtual-pos'  Hi, My... named 'django-virtual-pos' How to remove the ModuleNotFoundError: No module named 'django-virtual-pos' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-virtual-pos'
ModuleNotFoundError: No module named 'django-virtual-pos'  Hi, My... named 'django-virtual-pos' How to remove the ModuleNotFoundError: No module named 'django-virtual-pos' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'omero-virtual-microscope'
ModuleNotFoundError: No module named 'omero-virtual-microscope'  Hi...: No module named 'omero-virtual-microscope' How to remove the ModuleNotFoundError: No module named 'omero-virtual-microscope' error? Thanks  
ModuleNotFoundError: No module named 'openstack-virtual-baremetal'
ModuleNotFoundError: No module named 'openstack-virtual-baremetal'  ...: No module named 'openstack-virtual-baremetal' How to remove the ModuleNotFoundError: No module named 'openstack-virtual-baremetal' error? Thanks
ModuleNotFoundError: No module named 'pod-virtual-account'
ModuleNotFoundError: No module named 'pod-virtual-account'  Hi, My... named 'pod-virtual-account' How to remove the ModuleNotFoundError: No module named 'pod-virtual-account' error? Thanks   Hi
ModuleNotFoundError: No module named 'tl.buildout_virtual_python'
ModuleNotFoundError: No module named 'tl.buildout_virtual_python'  Hi...: No module named 'tl.buildout_virtual_python' How to remove the ModuleNotFoundError: No module named 'tl.buildout_virtual_python' error? Thanks
ModuleNotFoundError: No module named 'virtual-storage-manager'
ModuleNotFoundError: No module named 'virtual-storage-manager'  Hi...: No module named 'virtual-storage-manager' How to remove the ModuleNotFoundError: No module named 'virtual-storage-manager' error? Thanks   
ModuleNotFoundError: No module named 'apache-virtual-host'
ModuleNotFoundError: No module named 'apache-virtual-host'  Hi, My... named 'apache-virtual-host' How to remove the ModuleNotFoundError: No module named 'apache-virtual-host' error? Thanks   Hi
ModuleNotFoundError: No module named 'cloudshell-traffic-virtual'
ModuleNotFoundError: No module named 'cloudshell-traffic-virtual'  Hi...: No module named 'cloudshell-traffic-virtual' How to remove the ModuleNotFoundError: No module named 'cloudshell-traffic-virtual' error? Thanks
ModuleNotFoundError: No module named 'django-virtual-pos'
ModuleNotFoundError: No module named 'django-virtual-pos'  Hi, My... named 'django-virtual-pos' How to remove the ModuleNotFoundError: No module named 'django-virtual-pos' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'girder-virtual-folders'
ModuleNotFoundError: No module named 'girder-virtual-folders'  Hi...: No module named 'girder-virtual-folders' How to remove the ModuleNotFoundError: No module named 'girder-virtual-folders' error? Thanks   Hi
isNaN function
isNaN function  What does isNaN function do
Java Virtual Machine Free Download
Java Virtual Machine Free Download       The Java Virtual Machine is required to run your java program in your computer. The Java Virtual Machine software is freely downloadable from
Virtual Private Servers
Virtual Private Servers A Virtual Private Server or VPS for short is also know as Virtual Dedicated Server (VDS). Virtual Private Servers is many servers... of a dedicated server to many customers as low cost. In case of Virtual Private Server
virtual on screen keyboard project - Swing AWT
virtual on screen keyboard project  Hi im doing my project work on virtual onscreen keyboard. i want the code for key function of shift and capslock.please send me the code   Hi Friend, For CapsLock key,try
Java Virtual Machine Free Download
Java Virtual Machine Free Download       Java Virtual Machine Free Download The Java Virtual Machine is required to run your java program in your computer. The Java Virtual
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
What do you understand by Virtual Hosting?
What do you understand by Virtual Hosting?  What do you understand by Virtual Hosting? I am trying to find the hosting server provider but don't know about the hosting terms. Just explain me about Virtual Hosting. Thanks  

Ads