This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ 4.1 compiling against libgcj; classes cannot inherit from Object?


tsuraan writes:
 > I'm trying to make a simple hello world program wherein I have a C++
 > object that inherits from java::lang::Object.

That won't work.  Objects are either Java or C++.  You may write all
of the methods of a Java object in C++ if you wish, but it's still a
Java object.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]