Question bank / Freshers (India), Role Knowledge, Foundation

How to answer: Explain object oriented programming with a real example.

Whether you understand the ideas, not just the words.

What the interviewer is testing.

Four ideas, explained simply with one example. Whether you understand the ideas, not just the words.

An outline for this question.

  1. Name the four ideas: encapsulation, abstraction, inheritance and polymorphism.
  2. Use one running example, such as a Vehicle class with Car and Bike.
  3. Say in one sentence what each idea does for that example.
  4. Offer to write a short example if they would like.

The mistake to avoid.

Reciting definitions from a book. An example shows you understand.

The general method: frame, evidence, recommendation.

The same shape works for most role knowledge questions, whatever the topic.

  • Frame the problem: what is being decided and who is affected.
  • Say what evidence you would gather first, and why that order.
  • Give a clear recommendation and the risk you would watch.

Practice it, out loud.

Reading an outline is not the same as saying it. Answer this question in a mock interview, in your own words, then compare it with the outline above.

Practice this questionSee live interview help

This is a Replysis practice question. It is not a leaked or official question from any company, and the outline is a guide to structure, not a script. Use your own experience and facts.