我们在实施首要概念的地方需要一个实时示例 [英] Where we are implementing the overriding concept need a real time example

查看:93
本文介绍了我们在实施首要概念的地方需要一个实时示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在哪里实时使用OOP概念?我现在正处于学习阶段.
对我有帮助.
在此先感谢

问候,
siv

Where are we using the OOP concepts in real time? I''m in the learning phase now.
It''ll be helpful for me.
Thanks in advance

regards,
siv

推荐答案

您没有指定您感兴趣的语言,或者您是否只对OOP感兴趣.

覆盖在用于子类另一个类以替换 augment 父类的方法,事件或属性的功能的类中使用. br/>
例如,在我昨天发布的文章中 [继承(C#编程指南) [多态性(C#编程指南) [
You didn''t specify what language interests you, or if you''re just interested in OOP generally.

Overriding is used in a class that subclasses another class to replace or augment the functionality of a method, event or property of the parent class.

For example, in the article that I published yesterday[^], HighlightFilter subclasses Filter and overrides the OnFilter method in order to add additional functionality that isn''t implemented by the base class (see the class diagram).

See also:
Inheritance (C# Programming Guide)[^]
Polymorphism (C# Programming Guide)[^]

These concepts are common to all object-oriented programming languages (OOP).


这篇关于我们在实施首要概念的地方需要一个实时示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆