expected Error in java Compilation [duplicate]
well in class level you can only define attributes of that class, cant do any processing which you are doing in classA and classB. Processing can only be done in method. Just add main method make objects there Main method is entry point of any program in java. Dont worry if you are confused where … Read more