Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ vs Java "this"
SonxQ7 0 Light Poster
Recommended Answers
Jump to PostWell i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ …
Jump to Post> Note that setSize() is not a member of ConfirmExitDialog() but inherited from a super
> class... now "this" is used to access it???this
simply stands for the reference to current instance in consideration. The execution of setSize() is no different thanthis.setSize()
for the very same reason. They …
All 7 Replies
Alex Edwards 321 Posting Shark
SonxQ7 0 Light Poster
Alex Edwards 321 Posting Shark
SonxQ7 0 Light Poster
Alex Edwards 321 Posting Shark
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Alex Edwards 321 Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.