Edward Lawrence wrote: Question 1 - Why do I get the following compile error for line 5 but get no error for line 4 in Dog.java? C:\SCJP\CODEPR~1>javac pkgb\Dog.java pkgb\Dog.java:9: <identifier> expected System.out.println("1-protected Animal instance variable i = " + i); ^ 1 error
Edward Lawrence wrote: Question 2 - How do I access the inherited instance variable i in the main method of Dog.java?