English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i would like to know best website relating to it.

2006-06-13 02:25:05 · 2 answers · asked by crazy frog 1 in Education & Reference Higher Education (University +)

2 answers

In the real world, you often have many objects of the same kind. For example, your bicycle is just one of many bicycles in the world. Using object-oriented terminology, we say that your bicycle object is an instance (in the glossary) of the class of objects known as bicycles. Bicycles have some state (current gear, current cadence, two wheels) and behavior (change gears, brake) in common. However, each bicycle's state is independent of and can be different from that of other bicycles.

When building them, manufacturers take advantage of the fact that bicycles share characteristics, building many bicycles from the same blueprint. It would be very inefficient to produce a new blueprint for every bicycle manufactured.

2006-06-13 02:30:38 · answer #1 · answered by Smiddy 5 · 5 0

Think of a class as a school thing. All the students in a class have something in common....they all belong to the same class. In object oriented programming, the concept is the same. An object (student) belongs to a class. There are many kinds of balls (baseball, soccer ball, tennis ball, etc). A ball belongs to a class (sphere) and has all of characteristics (things in common) of the sphere (round, three dimensional, etc)

2006-06-13 02:49:50 · answer #2 · answered by professorbrozo 1 · 0 0

fedest.com, questions and answers