公開記念セール すべてのパスが 50% オフ

プランを見る

Object-oriented programming

OOP rounds in campus placements and university exams ask about language mechanisms by name: virtual functions, vtables, the diamond problem, abstract classes versus interfaces, overloading versus overriding. This course explains how each one works in C++, Java and Python, so you can answer the follow-up question as well as the first one.

7 レッスン80 分28 Oct 2026 更新

このページの本文は英語です。

コースを始める

レッスン

  1. Objects, classes and encapsulation

    State and behaviour, class invariants, access control in C++, Java and Python, and why a getter and setter for every field is not encapsulation.

    12 分無料
  2. Object lifetime: construction, destruction and copying

    Constructors and initialization order, destructors and RAII, garbage collection, shallow and deep copies, the rule of three/five/zero, and equals and hashCode.

    12 分Interview Prep パス
  3. Inheritance and multiple inheritance

    What a subclass inherits, constructor chaining, protected members, and the diamond problem in C++, Java and Python’s C3 method resolution order.

    12 分Interview Prep パス
  4. Polymorphism: overloading, overriding and vtables

    Overloading versus overriding, static and dynamic dispatch, how vtables and vptrs implement virtual calls, virtual destructors, object slicing and duck typing.

    12 分Interview Prep パス
  5. Abstract classes and interfaces

    Pure virtual functions, Java abstract classes versus interfaces with default methods, Python ABCs and protocols, and how to choose between them.

    10 分Interview Prep パス
  6. Composition over inheritance

    The fragile base class problem, classes that inherit too much, the Liskov substitution principle with a concrete violation, delegation and refactoring a hierarchy into composition.

    10 分Interview Prep パス
  7. OOP interview questions, answered by mechanism

    Static members, this and self, final and sealed, friend, early and late binding, and constructors that throw, each explained by how the language implements it.

    12 分Interview Prep パス

Interview Prep パス · プランを比較

Esc
↑↓移動 ↵開く Ctrl↵新しいタブ >操作 ?ショートカット

キーボードショートカット

どこでも

検索を開く
CtrlKまたは /
この一覧を表示
?
ウィンドウやメニューを閉じる
Esc

検索中

結果を移動
↑または ↓
結果を開く
↵
新しいタブで開く(問題はジャッジで開く)
Ctrl↵
操作だけを表示
>
絞り込みを解除
⌫

移動

学習
Gの次にL
練習
Gの次にP
ランクテスト
Gの次にA
システム設計
Gの次にS
企業
Gの次にC
マイプロフィール
Gの次にM
今日のクエスト
Gの次にT
ホーム
Gの次にH

バグを報告

ページ