- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 74字
- 2021-07-03 00:12:01
How it works...
We can see that inheritance allows us to easily extend our classes by reusing functionality that already exists within another class created earlier. You also need to be aware though that any changes to the SpaceShip class will be inherited, all the way up to the top-most derived class.
Inheritance is a very powerful feature of C# that allows developers to write less code, and reuse working and tested methods.
推薦閱讀
- TypeScript入門與實(shí)戰(zhàn)
- Java面向?qū)ο笏枷肱c程序設(shè)計(jì)
- Rust編程:入門、實(shí)戰(zhàn)與進(jìn)階
- Boost C++ Application Development Cookbook(Second Edition)
- JavaScript+jQuery網(wǎng)頁特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程(第2版)
- 深入理解Django:框架內(nèi)幕與實(shí)現(xiàn)原理
- Django開發(fā)從入門到實(shí)踐
- Xcode 7 Essentials(Second Edition)
- 深入實(shí)踐Spring Boot
- SQL語言從入門到精通
- Ray分布式機(jī)器學(xué)習(xí):利用Ray進(jìn)行大模型的數(shù)據(jù)處理、訓(xùn)練、推理和部署
- 小程序,巧運(yùn)營:微信小程序運(yùn)營招式大全
- Learning JavaScript Data Structures and Algorithms
- Haskell Data Analysis Cookbook
- HTML5 APP開發(fā)從入門到精通(微課精編版)