Given the code fragment: What is the result? A. Reading Card Checking Card B. Compilation fails only at line n1. C. Compilation fails only at line n2. D. Compilation fails only at line n3. E. Compilation fails at both line…

Which statement best describes encapsulation? A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects. B. Encapsulation ensures that classes can be designed so that their methods…