The Artima Developer Community
Sponsored Link

Legacy Design Forum
Composition Versus Inheritance

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Frequently occuring error in inheritance

Posted by vanaja on November 20, 2000 at 3:48 AM

Sir,
Inheritance in java.
I am frequently getting this problem.Can't be static in innerclassB
Only members of interfaces and toplevel classees can be static.public static
void main(String args[]).
^
2)Can't convert java.lang string to int in some of the programs in super
word using program.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us