Q1. What do attr_reader, attr_writer and attr_accessor do?
Ruby encapsulates instance variables such as `@name`, which are private by default. `attr_reader`, `attr_writer` and `attr_accessor` are class macros that define getter a...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (1 available).