Chapter 8: Problem 3
Describe the limitation of static methods.
Short Answer
Expert verified
Answer: The limitations of static methods include: 1) the inability to directly access instance variables and methods, 2) the absence of inheritance and overriding, 3) the inability to participate in interfaces, and 4) limited flexibility due to a lack of polymorphism. These limitations make static methods less flexible and versatile compared to instance methods in certain situations.