Arpit T:
I read the documentation for using virtual in class
but I cant set virtual to a string or double variable
when i use it with bool or void it works fine
How can i use it in double, string or int variables inside a class?
The keyword virtual is a modifier for member functions, not for variables.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I read the documentation for using virtual in class
but I cant set virtual to a string or double variable
when i use it with bool or void it works fine
How can i use it in double, string or int variables inside a class?