| noktalivirgul (53) | |
|
How can i call a function of a class inside another function of the same class? | |
|
|
|
| NwN (770) | |||
|
Hi there, you can just call it by its name, or use the this pointer:
Hope that helps. All the best, NwN | |||
|
|
|||
| noktalivirgul (53) | |
what about virtual??
| |
|
|
|
| NwN (770) | |
|
Works pretty much the same... it seems to me that what you need is a better understanding of the basics of using classes in C++. This provides a good introduction: http://cplusplus.com/doc/tutorial/classes/ virtual is used to indicate that a member function can be overridden in a child class.More on that here: http://cplusplus.com/doc/tutorial/polymorphism/#virtual All the best, NwN | |
|
|
|