As an object-oriented language, c# supports the three core principles of object-oriented programming:

  • Encapsulation - Hide implementation details in a class from users of the class, exposing only a public interface
  • Inheritance - Derive a subclass from a parent class, inheriting data and behavior from the parent, in an "is-a" relationship. Inheritance defines a hierarchy of classes. All classes ultimately inherit from System.Object.
  • Polymorphism - Any subtype may be used where a parent type (or type higher up in the class hierarchy) is expected. Conversely, a variable of a particular class will be treated as the apporiate subclass.

原文地址:#229 - The Core Principles of Object-Oriented Programming

最新文章

  1. document.all.wb.ExecWB
  2. 【循序渐进学Python】14.数据库的支持
  3. 同步推是如何给未越狱的IOS设备安装任意IPA的?
  4. Android App 开发常用的xUtils框架
  5. Android Studio常见问题 -- AndroidManifest.xml 覆盖问题
  6. 【转】漫谈ANN(2):BP神经网络
  7. (转载)如何优化MySQL insert性能
  8. POJ22230 Watchcow (欧拉回路)
  9. 密码算法详解——Simon
  10. oracle字符集查看修改
  11. codeforces 607B. Zuma 区间dp
  12. 解读<!doctype html>
  13. MyEclipse8.5安装findbugs方法
  14. Linux SDK之uClinux、Broadcom、Atheros、Realtek、Ralink、Marvell、Intel
  15. 在Linux机器上安装telnet命令
  16. android 基础03 -- Intent
  17. [译]Nuget.Server
  18. 踏破铁鞋无觅处,从AsyncTask学Android线程池
  19. linux命令大全网站
  20. 【转】C# Socket通信编程

热门文章

  1. [CentOS7] ssh免密登录 scp免密传输
  2. 从零开始安装 Ambari (2) -- 准备本地 repository
  3. thinkphp5使用QueryList实现采集功能
  4. RabbitMQ基础概念及使用
  5. Vue 5 -- axios、vuex
  6. 把查询出来的结果进行修改再赋值给list
  7. KEYCODE列表
  8. Zookeeper启动失败:java.net.BindException: Address already in use
  9. 基于C#编程语言的Mysql常用操作
  10. Golang: runnerw.exe: CreateProcess failed with error 216 (no message available)