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 PostI'm sorry, my quote wasn't complete.
I meant only when the derived object itself didn't have the definition of the method within its class but in the base class and you needed to specify where you were calling the method (had problems before with calling methods in a base …
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.