小山的 C# 教學 – 第 50 課 – 泛型 (Generics) 的初步介紹



小山的 C# 教學 – 第 50 課 – 泛型 (Generics) 的初步介紹

小山的 C# 教學 - 第 50 課 - 泛型 (Generics) 的初步介紹

本課開始正式介紹泛型 (Generics)
泛型不只在 C# 中,在其他程式語言也是很重要的語法
透過泛型可以大幅減少重複的程式碼
同時更進一步提升程式碼的彈性

【本課章節】
0:00 開場
0:51 甚麼是泛型?
3:00 舉例:設計大樓 class
4:38 示範:以繼承方式實作 Building
10:35 示範:以泛型方式實作 Building
13:45 泛型的好處
14:59 下集預告&收尾

【課程整理與補充】
https://slmtsite.blogspot.com/2020/11/c-50-generics.html

【本課教材】
https://github.com/slmt-tutorial-channel/c-sharp-class-materials/tree/master/class-41-50/class-50

【本課程式碼】
https://github.com/slmt-tutorial-channel/c-sharp-course-sample-code/tree/master/class-41-50/Class50

【FB – 小山的教學平台粉絲團】
https://www.facebook.com/slmttutorialchannel

【Donate 小山】
如果你覺得在我的影片中有收穫,想要以捐款的方式回饋我的話~
歡迎用下面的連結斗內!
https://p.ecpay.com.tw/99D63CA

【感謝 Credit】
感謝以下 www.flaticon.com 的作者繪製的圖片 (thanks the following authors for their icons):
monkik
https://www.flaticon.com/authors/monkik

Vitaly Gorbachev
https://www.flaticon.com/authors/vitaly-gorbachev

Comments are closed.