一个event model的概念级的问题# Java - 爪哇娇娃
j*I
1 楼
不好意思,java的版本有点古老,是1.1. 不知道这个model后来有没有变过。
以下是我从教科书上引的一段话. 基本大意是介绍nested class概念的发展. 我的具体问题是关于event model的. 这段话看起来好像说java 1的时候,event 只能deliver给那些implement interface的class's object. 从java 1.1开始,一个object不需要implement interface也能接event. 那么这是怎么实现的呢? 还是这段话,我哪理解错了?
Introduction
=================
The designer of Java decided at an early stage that Java classes would have
single inheritance - in other words, each class has only one parent class.
Sometimes on object-oriented programming, you want a class
以下是我从教科书上引的一段话. 基本大意是介绍nested class概念的发展. 我的具体问题是关于event model的. 这段话看起来好像说java 1的时候,event 只能deliver给那些implement interface的class's object. 从java 1.1开始,一个object不需要implement interface也能接event. 那么这是怎么实现的呢? 还是这段话,我哪理解错了?
Introduction
=================
The designer of Java decided at an early stage that Java classes would have
single inheritance - in other words, each class has only one parent class.
Sometimes on object-oriented programming, you want a class