https://github.com/solareenlo/42cpp-module-03
C++ practice 03 (inheritance, multiple inheritance)
https://github.com/solareenlo/42cpp-module-03
42 42born2code 42cursus 42projects cpp
Last synced: about 1 year ago
JSON representation
C++ practice 03 (inheritance, multiple inheritance)
- Host: GitHub
- URL: https://github.com/solareenlo/42cpp-module-03
- Owner: solareenlo
- Created: 2021-05-26T19:40:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T15:09:45.000Z (almost 5 years ago)
- Last Synced: 2025-05-30T11:50:27.300Z (about 1 year ago)
- Topics: 42, 42born2code, 42cursus, 42projects, cpp
- Language: C++
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 42cpp-module-03
### ex04
- [多重継承](https://programming.pc-note.net/cpp/inheritance_multiple.html)
- C++ でダイヤモンド継承をすると基底クラスの実体はふたつ存在することになる.
- C++ では仮想継承(virtual)という方法を用いると,基底クラスの実体をひとつにすることができる.
- [静的メンバ](https://cpp-lang.sevendays-study.com/day5.html)
- [Static constant string (class member)](https://stackoverflow.com/questions/1563897/static-constant-string-class-member)
### ex02
- [継承](https://programming.pc-note.net/cpp/inheritance.html)
- 拡張のための継承 = is-a 関係
- is-a 関係は,差分プログラミングと呼ばれるプログラミング手法
- [is-a 関係](https://programming-place.net/ppp/contents/cpp/language/026.html#is_a)
- [C++のis-aとhas-a関係(オブジェクト指向的な関係)](https://www.zealseeds.com/Lang/LangCpp/cpp/objectOrientation/RelationOfIs-aOrHas-a/index.html)
- [継承と合成 | Programming Place Plus C++編【言語解説】 第28章](https://programming-place.net/ppp/contents/cpp/language/028.html)
### ex01
- [静的メンバ変数](http://wisdom.sakura.ne.jp/programming/cpp/cpp41.html)
- クラス内に1つしか存在しないメンバのこと.
- 全てのオブジェクトが共有するクラス内グローバル変数と言える.
### ex00
- [メンバイニシャライザ](https://programming.pc-note.net/cpp/constructor.html)
- 「コンストラクタ名() :」の後に記述されているのがメンバイニシャライザ.
- メンバイニシャライザによる初期化は,代入による初期化よりも効率が良い.
- [C++ メンバイニシャライザの効率を調べてみた](http://jagabeeinitialize.hatenablog.com/entry/2018/01/21/192043)
- [委譲コンストラクタ](https://cpprefjp.github.io/lang/cpp11/delegating_constructors.html) は,C++11 からの機能.
- 委譲コンストラクタは,効率の良い初期化方法.
- [演算子のオーバーロード](http://wisdom.sakura.ne.jp/programming/cpp/cpp27.html)
### キャラクター名
- Clap Trap
- Borderlands というゲームに登場するノンプレイキャラクター
- [Borderlands ノンプレイヤーキャラクター CL4P-TP](https://ja.wikipedia.org/wiki/Borderlands#%E3%83%8E%E3%83%B3%E3%83%97%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC)
- [Claptrap (robots)](https://borderlands.fandom.com/wiki/Claptrap_(robots))
- [SC4V-TP](https://borderlands.fandom.com/wiki/SC4V-TP)