
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
After fruits (apple, pear), cat, dog and animal. The lack of imagination is terrible when people are talking about oop. (cyclops993, not about you, but wikipedia.) Which real program need a class "animal" with a method "talk". I will post a "trading" example as soon as possible.
Slightly more complete example script:
What I hadn't noticed before it is that it doesn't seem to be possible to have virtual functions with no bodies if there is a reference to the base class. In the above example, you can't do the following:
...whereas in C++ you can do the following:
so what would you call class cat and class dog, are they subclasses of animal ? could you create another subclass of dog in the dog class and call it class pitbull ?
ok thats kinda neat I think I'm going to make some effort to learn this
ok thats kinda neat I think I'm going to make some effort to learn this
For example:
...Pitbulls can not only talk, like cats and other dogs, but can also menace things.