InterviewLegend

OOP in Code: Singletons, Inheritance & Patterns

Alex Chen35 min readGuide updated

Object-oriented questions at Bank of America are small and concrete. You write a singleton or an inheritance chain, or explain a pattern, usually in a technical round that also has a coding problem and some SQL. They haven't gone away. In November 2025 an India software engineer had "basic Oops concepts" next to medium DSA and project questions, and a Gurgaon full-stack interview in June 2025 paired two coding questions with "others related to OOPs concepts".

The newest named question is a Premium question from an August 2025 Hyderabad round, and a Gurgaon senior loop asked the same thing in January 2012. Inheritance code came up at a 2023 India campus drive and in a Chennai trainee round in December 2024. The spoken half, SOLID and design patterns, came up in five interviews between February 2023 and August 2025.

The Bank of America angle
Have the Java version ready. India loops in 2025 leaned hard on core Java, and these questions invite Java follow-ups: why the singleton field is volatile, what super calls, which method a parent reference runs. The runnable versions below are in Python, and each walkthrough shows the Java answer too.

Bank of AmericaPremium lesson · Coding round

The 2 Bank of America problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Easy

Each with hints, the follow-up and a tested solution.

Get the Bank of America questions

$49 a year · all 108 companies · instant access

20,000+ candidate reports

Bank of America interview guide

Know what Bank of America asks before you walk in.

32 coding · 5 system design · 43 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Bank of America interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.