在本章我会用一些例子来演示继承,这些例子会用到一些类来表示扑克牌,成副的纸牌和扑克牌型。
In this chapter I demonstrate inheritance using classes that represent playing CARDS, decks of CARDS, and poker hands.
桥牌、扑克和惠斯特都是纸牌游戏。
一种纸牌游戏的变形(例如扑克牌),在这种游戏中,王可以代替持有者选择的任何一张牌。
A variation of certain card games, such as poker, in which each deuce may represent any card the holder chooses.
桥牌、扑克和惠斯特是纸牌游戏。
我下了床,到楼下铺开扑克玩单人纸牌游戏。
I got out of bed, went downstairs and laid out the CARDS for a game of solitaire.
这是使用伊拉克最大限度地被想要的纸牌的五个扑克牌戏的一个收集。
This is a collection of five card games using the Iraqi Most Wanted Playing Cards.
把一块半透明的塑料片放在普通的面朝下的扑克牌上面,隔开这些纸牌,以防魔术师做手脚。
A translucent piece of plastic is placed on top of the ordinary face-down deck to isolate the CARDS and preclude the magician from any "tricky business."
把一块半透明的塑料片放在普通的面朝下的扑克牌上面,隔开这些纸牌,以防魔术师做手脚。
A translucent piece of plastic is placed on top of the ordinary face-down deck to isolate the CARDS and preclude the magician from any "tricky business."
应用推荐