When I first started learning how to program Java, I was left totally confused about this whole "object-oriented" thing. What books I had explained the concept poorly, and then went straight on to advanced programming tips. I felt frustrated and lost. Not being particularly math-oriented, I needed a good analogy to help me understand the nature of Java.I have created this brief tutorial not in order to be an exhaustive Java resource, but rather to introduce readers to the concepts of object oriented programming in a way that is non-threatening. If all goes well, we'll have you all in pocket protectors before the end of the hour.There are three different levels of this tutorial, coded by color. Green is for those readers who want the most basic introduction. It is targeted at those who are unsure what object-oriented programming is, and could use a good analogy to make things clearer. Yellow is for those who want to be able to understand object-oriented programming just enough to be able to read and follow it, but are not yet ready to learn the intricacies of coding Java. And finally, the third level, red, is for you daredevils who want to be able to program in Java, but just want to ease into it slowly.In short, the green text gives a "plain English" version of the code that would be necessary, the yellow uses that English in a way that more closely resembles the format of code, and the red is the actual code that would be necessary for the program to work. Readers of all levels are encouraged to skip between the colors to deepen their understanding. Finally, although this tutorial operates mostly through analogy, innuendo, and intrigue, those words that appear in boldface are the actual terms used by Java programmers (ooooh!), so try to remember them as you go along
OOP(Object Oriented Programming)I think this is a better way to deel with some question in our programming .every thing is Object.
对于多态也是理解OOP的本质,比如我们要有很多的提交查询的窗体,那么我们就用一个对象来实现这个接口,并在系统中生成这个对象的句柄,但是句柄中的存放的是实现接口方法的哪个子类对象。然后调用接口类型对象就可以实现多态了。
我对OOP很感兴趣,如果有问题大家讨论呀!
看个人理解了。