how to compile different java source files ( h1.java , h2 .java , h3.java and demo.java) defined under same package(test) ;
demo.java contains main() method.
h1 contains some public , private , protected data.
h2 extends h1
h3 in the same package ( not subclass of either h1 or h2) ;
when i compiled h1( no error) , but when compiled h2( got error)
plz help.
demo.java contains main() method.
h1 contains some public , private , protected data.
h2 extends h1
h3 in the same package ( not subclass of either h1 or h2) ;
when i compiled h1( no error) , but when compiled h2( got error)
plz help.
Comment