File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using super keyword

 
Roger Fed
Ranch Hand
Posts: 82
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I've developed these two classes, they are related by inheritance
when the last line executed in main , i want the "toString()" in the subclass call the "toString()" in the super class
I've tried to put this line "super.toString()" inside the the method in the subclass but it give me syntax error
I'd be grateful if you help me
thanks in advance.
this is main


and this is the GeometricObject class


 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There shouldn't be any problem. Can you show exactly how and where you wrote it ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic