Web design software - 20 Part I: Getting Started Figure 1-1: Terminology

20 Part I: Getting Started Figure 1-1: Terminology in object- oriented programming. The house class is Superclass Parent thesuperclass of the three-bedroom house class, theparent class of the three-bedroom house class, thesuperclass of the four-bedroom house class, theparent class of the four-bedroom house class. Subclass Child four-bedroom house class The three-bedroom house class The four-bedroom house class extends the house class, extends the house class, inherits the features of the house class,inherits the features of the house class, is a subclass of the house class, is a subclass of the house class, is a child class of the house class. is a child class of the house class. In a confident tone, you reply, We don t have to mess with the original house blueprint. If someone wants a Jacuzzi in his living room, we can make a new, small blueprint describing only the new living room and call this the Jacuzzi- in-living-room house blueprint. Then, this new blueprint can refer to the original house blueprint for info on the rest of the house (the part that s not in the living room). In the language of object-oriented programming, the Jacuzzi-inliving- room house blueprint still extends the original house blueprint. The Jacuzzi blueprint is still a subclass of the original house blueprint. In fact, all the terminology about superclass, parent class, and child class still applies. The only thing that s new is that the Jacuzzi blueprint overrides the living room features in the original house blueprint. In the days before object-oriented languages, the programming world experienced a crisis in software development. Programmers wrote code, then discovered new needs, and then had to trash their code and start from scratch. This happened over and over again because the code that the programmers were writing couldn t be reused. Object-oriented programming changed all this for the better (and, as Burd said, Java is A Great Object-Oriented Language ). Refining your understanding of classes and objects When you program in Java, you work constantly with classes and objects. These two ideas are really important. That s why, in this chapter, I hit you over the head with one analogy after another about classes and objects.
Maybe you are looking hosting for companies or individuals who want a basic internet presence at budget price with no frills.From our experience you should check Budget Web Hosting part.

Leave a Reply