I am confused with C ++ in the keyword this, I'm not sure if I Here's the piece of code I am struggling with:
Class A :: Class A (Classbie) And B) {B.Denth (this); // Passing my pointer and trying to call the regularity of B, should I use "this"? } ClassB :: doSth (ClassA * a) {// do sth}
This indicator indicates the current object instance.
Also, say that you declare pointer and pw have the exact same value (both of them are the same address) ). (To make sure that it produces, but I do not think it should). worker * PW = new worker ()
. If you call a method (Dovor) on the PW
object, you will see that this
No comments:
Post a Comment