Other languages would have to resort to Inheritance for this, ie. define the method in a class and force users to extend that.
其他编程语言可能要使用继承才能做到:比如在类中定义方法并强迫用户扩展这个方法。
It's not a place where children are force-fed, in fact, staff at the clinic tell me they have had to resort to tube-feeding a child just once in the last two years.
在这里儿童不会被强制喂食,事实上,农庄里的工作人员告诉我他们在过去两年中只有一次需要对一个孩子采取胃管喂食的方法。
Just as they were about to resort to law and force, she broke down, and they buried her father quickly.
正当他们要诉诸法律和武力时,她垮下来了,于是他们很快地埋葬了她的父亲。
As mentioned earlier, lack of APIs from content providers often force mashup developers to resort to screen scraping in order to retrieve the information they seek to mash.
正如前面介绍的一样,缺乏内容提供者提供的API通常会强制要求mashup开发人员采取屏幕抓取的方式来提取自己希望集成的信息。
Nevertheless, we hope that we can use peaceful talks to achieve the purpose, rather than resort to the willful use of force or the intimidation of force.
不管怎么说,我们都是希望能利用和谈的方式达到目的,动则诉诸武力或者武力威胁无助于问题的解决。
If this can't be settled reasonably, it may be necessary to have resort to force.
如果这个问题得不到合理的解决,诉诸武力可能就是必要的了。
Earlier this week, Beijing said it would not resort to the use of force to resolve its maritime border disputes.
本周早些时候,北京称,它不会诉诸武力用以解决其海洋边界纠纷。
Hunger, however, presently compelled him to do something: and as the use of force did not promise success, he determined to resort to artifice.
然而,饥饿促使他一定要做点什么,单凭武力,他肯定无法成功,于是,狮子决定用诡计智取。
Troy still held out, and the Greeks began to despair of even subduing it by force, and by advice of Ulysses resolved to resort to stratagem.
特洛伊城坚不可摧,希腊人开始对用武力攻破它失去信心,他们在尤里西斯的建议下,决定采用计谋。
If this can't be settled reasonably it may be necessary to have resort to force.
如果此事无法合理解决,也许会诉诸武力。
If this can't be settled reasonably it may be necessary to have resort to force.
如果此事无法合理解决,也许会诉诸武力。
应用推荐