posted 16 years ago
1.Describe briefly 1) the definition of the method, 2) what is a void method, and 3) what is a non-void method?
2.Describe briefly 1) the definition of a constructor, 2) what role does the keyword �this� play?, and 3) what is difference between a method and a constructor?
3.What is access protection? Given two class packages and a method A, describe briefly in what situation the modifier �public� will be used in front of the method A and in what situation the modifier �private� will be used in front of A
4.What is difference between class variables and instance variables with respect to: 1) memory allocation and 2) access way