class Dad { protected static String me = \"dad\"; public void printMe() { System.out.println(me); } } class Son extends Dad { protected
You cannot override variables in a class. You can override only methods. You should keep the variables private otherwise you can get a lot of problems.