object-oriented design code is exactly like the start code for the textual versionexcept that we use graphicsinterface in place of the textinterface inter graphicsinterface(app pokerapp(interapp run(we now have completeusable video dice poker game of courseour game is lacking lot of bells and whistles such as printing nice introductionproviding help with the rulesand keeping track of high scores have tried to keep this example relatively simplewhile still illustrating important issues in the design of guis using objects improvements are left as exercises for you have fun with them oo concepts my goal for the racquetball and video poker case studies was to give you taste for what ood is all about actuallywhat you've seen is only distillation of the design process for these two programs basicallyi have walked you through the algorithms and rationale for two completed designs did not document every single decisionfalse startand detour along the way doing so would have at least tripled the size of this (already longyou will learn best by making your own decisions and discovering your own mistakesnot by reading about mine stillthese smallish examples illustrate much of the power and allure of the object-oriented approach hopefullyyou can see why oo techniques are becoming standard practice in software development the bottom line is that the oo approach helps us to produce complex software that is more reliable and cost-effective howeveri still have not defined exactly what counts as objected-oriented development most oo gurus talk about three features that together make development truly object-orientedencapsulationpolymorphismand inheritance don' want to belabor these concepts too muchbut your introduction to object-oriented design and programming would not be complete without at least some understanding of what is meant by these terms encapsulation have already mentioned the term encapsulation in previous discussion of objects as you knowobjects know stuff and do stuff they combine data and operations this process of packaging some data along with the set of operations that can be performed on the data is called encapsulation encapsulation is one of the major attractions of using objects it provides convenient way to compose complex solutions that corresponds to our intuitive view of how the world works we naturally think of the world around us as consisting of interacting objects each object has its own identityand knowing what kind of object it is allows us to understand its nature and capabilities look out my window and see housescarsand treesnot swarming mass of countless molecules or atoms