StarkSeek
EventsJobs
Sign in

Menu

Practice

  • DSA sheetsProblem sheets by topic and company
  • AptitudeNewQuant, logic, data and verbal, with fresh questions
  • SQLNew400 interview-style SQL problems with checked solutions
  • CS fundamentalsNewOS, DBMS, networks and OOP, with labs you can run
  • Skill tracksProject-based learning in 12 domains

Interview prep

  • Mock interviewAIPractise with an AI interviewer by voice
  • Code ComprehensionNewRead, fix and explain real code with an AI assistant
  • EventsHackathons, workshops, meetups and contests
  • JobsOpen roles from companies hiring through StarkSeek

Pricing

  • MembershipsCompare plans and what each includes
  • Add-ons and creditsExtra credits when you need more
  • Rewards store

For Companies

  • Hire talentAssess real work, read the evidence behind every score and decide with your team
  • Host an eventHackathons, coding contests, workshops and meetups, with certificates and a live leaderboard
Sign in
CS fundamentals/Object-oriented design/The four ideas

Object-oriented design

The four ideas

Encapsulation, abstraction, inheritance and polymorphism, in one line each and with their differences.

Practise this topic

In two minutes

One idea to a line

  1. 1

    Encapsulation bundles data with the methods that use it and hides the data behind access control, so an object guards its own rules.

  2. 2

    Abstraction shows what an object does and hides how: callers use an interface and not the details.

  3. 3

    Inheritance lets a class reuse and extend another (an "is-a" relation). Polymorphism lets one call behave differently depending on the real object.

  4. 4

    Compile-time polymorphism is overloading (same name, different parameters). Run-time polymorphism is overriding resolved through the real type of the object.

  5. 5

    Prefer composition ("has-a") when the relation is not truly "is-a": it is more flexible and avoids deep hierarchies.

Slips people make here

Interviewers know them too

  • Confusing abstraction (what is shown) with encapsulation (what is protected).

  • Calling overloading "run-time polymorphism".

  • Using inheritance just to reuse code.

Your practice here

Not started

12 written questions

No answers yet

Get product updates

New tracks and events, straight to your inbox.

StarkSeek

Learn by building real projects, practise interview-level DSA, and apply to roles from hiring teams.

Platform

  • Learning tracks
  • Practice problems
  • Aptitude
  • SQL practice
  • CS fundamentals
  • Mock interviews
  • Code Comprehension
  • Events

Resources

  • Host an event
  • For companies
  • Certificates
  • Rewards store
  • Pricing
  • Add-ons
  • Blog

Company

  • Careers
  • Contact us
  • Privacy policy
  • Terms of service

Support

  • contact@starkseek.com
  • community@starkseek.comEvents and organizers
  • partner@starkseek.comCompanies and partnerships

© 2026 StarkSeek. A product of NOKATI LLP.

Recognized by