Discover great prices on toys for children of all ages, classcial toys, educational and construction toys and much more.

OO Scale

Object-oriented programming (OOP) is a programming paradigm that uses "objects" to design applications and computer programs. It utilizes several techniques from previously established paradigms, including inheritance, modularity, polymorphism, and encapsulation. more...

Home
Building Toys
Classic Toys
Educational
Electronic, Battery, Wind-Up
Model RR, Trains
G Scale
HO Scale
Mixed Lots, Magazines
N Scale
O Scale
OO Scale
Other Scales
S Scale
Standard Scale
Z Scale
Models, Kits
Outdoor Toys, Structures
Pretend Play, Preschool
Puzzles
Radio Control
Robots, Monsters, Space Toys
Stuffed Animals
TV, Movie, Character Toys
Toy Soldiers
Vintage, Antique Toys

Even though it originated in the 1960s, OOP was not commonly used in mainstream software application development until the 1990s. Today, many popular programming languages (such as Java, JavaScript, C#, C++, Python, PHP, Ruby and Objective-C) support OOP.

Object-oriented programming's roots reach all the way back to the creation of the Simula programming language in the 1960s, when the nascent field of software engineering had begun to discuss the idea of a software crisis. As hardware and software became increasingly complex, how could software quality be maintained? Object-oriented programming in part addresses this problem by strongly emphasizing modularity in software.

Object-oriented programming may be seen as a collection of cooperating objects, as opposed to a traditional view in which a program may be seen as a collection of functions, or simply as a list of instructions to the computer. In OOP, each object is capable of receiving messages, processing data, and sending messages to other objects. Each object can be viewed as an independent little machine with a distinct role or responsibility.

Object-oriented programming is intended to promote greater flexibility and maintainability in programming, and is widely popular in large-scale software engineering. By virtue of its strong emphasis on modularity, object oriented code is intended to be simpler to develop and easier to understand later on, lending itself to more direct analysis, coding, and understanding of complex situations and procedures than less modular programming methods.

Fundamental concepts

A survey of nearly 40 years of computing literature by Deborah J. Armstrong identified a number of "quarks," or fundamental concepts, identified in the strong majority of definitions of OOP. They are:

Class 
A class defines the abstract characteristics of a thing, including the thing's characteristics (its attributes or properties) and the things it can do (its behaviors or methods or features). For example, the class Dog would consist of traits shared by all dogs, for example breed, fur color, and the ability to bark. Classes provide modularity and structure in an object-oriented computer program. A class should typically be recognizable to a non-programmer familiar with the problem domain, meaning that the characteristics of the class should make sense in context. Also, the code for a class should be relatively self-contained. Collectively, the properties and methods defined by a class are called members.
Object 
A particular instance of a class. The class of Dog defines all possible dogs by listing the characteristics that they can have; the object Lassie is one particular dog, with particular versions of the characteristics. A Dog has fur; Lassie has brown-and-white fur. In programmer jargon, the object Lassie is an instance of the Dog class. The set of values of the attributes of a particular object is called its state.
Method 
An object's abilities. Lassie, being a Dog, has the ability to bark. So bark() is one of Lassie's methods. She may have other methods as well, for example sit() or eat(). Within the program, using a method should only affect one particular object; all Dogs can bark, but you need one particular dog to do the barking.
Message passing 
"The process by which an object sends data to another object or asks the other object to invoke a method."
Inheritance 
In some cases, a class will have "subclasses," more specialized versions of a class. For example, the class Dog might have sub-classes called Collie, Chihuahua, and GoldenRetriever. In this case, Lassie would be an instance of the Collie subclass. Subclasses inherit attributes and behaviors from their parent classes, and can introduce their own. Suppose the Dog class defines a method called bark() and a property called furColor. Each of its sub-classes (Collie, Chihuahua, and GoldenRetriever) will inherit these members, meaning that the programmer only needs to write the code for them once. Each subclass can alter its inherited traits. So, for example, the Collie class might specify that the default furColor for a collie is brown-and-white. The Chihuahua subclass might specify that the bark() method is high-pitched by default. Subclasses can also add new members. The Chihuahua subclass could add a method called tremble(). So an individual chihuahua instance would use a high-pitched bark() from the Chihuahua subclass, which in turn inherited the usual bark() from Dog. The chihuahua object would also have the tremble() method, but Lassie would not, because she is a Collie, not a Chihuahua. In fact, inheritance is an "is-a" relationship: Lassie is a Collie. A Collie is a Dog. Thus, Lassie inherits the members of both Collies and Dogs. When an object or class inherits its traits from more than one ancestor class, and neither of these ancestors is an ancestor of the other, then it's called multiple inheritance. For example, independent classes could define Dogs and Cats, and a Chimera object could be created from these two which inherits all the (multiple) behaviour of cats and dogs. This is not always supported, as it can be hard both to implement and to use well.
Encapsulation 
Conceals the exact details of how a particular class works from objects that use its code or send messages to it. So, for example, the Dog class has a bark() method. The code for the bark() method defines exactly how a bark happens (e.g., by inhale() and then exhale(), at a particular pitch and volume). Timmy, Lassie's friend, however, does not need to know exactly how she barks. Encapsulation is achieved by specifying which classes may use the members of an object. The result is that each object exposes to any class a certain interface — those members accessible to that class. The reason for encapsulation is to prevent clients of an interface from depending on those parts of the implementation that are likely to change in future, thereby allowing those changes to be made more easily, that is, without changes to clients. For example, an interface can ensure that puppies can only be added to an object of the class Dog by code in that class. Members are often specified as public, protected and private, determining whether they are available to all classes, sub-classes or only the defining class. Some languages go further: Java uses the protected keyword to restrict access also to classes in the same package, C# and VB.NET reserve some members to classes in the same assembly using keywords internal (C#) or Friend (VB.NET), and Eiffel allows one to specify which classes may access any member.
Abstraction 
Simplifying complex reality by modeling classes appropriate to the problem, and working at the most appropriate level of inheritance for a given aspect of the problem. For example, Lassie the Dog may be treated as a Dog much of the time, a Collie when necessary to access Collie-specific attributes or behaviors, and as an Animal (perhaps the parent class of Dog) when counting Timmy's pets.
Polymorphism 
Polymorphism is behavior that varies depending on the class in which the behavior is invoked, that is, two or more classes can react differently to the same message. For example, if a Dog is commanded to speak() this may elicit a Bark; if a Pig is commanded to speak() this may elicit an Oink.

Read more at Wikipedia.org


[List your site here Free!]

1:76 Ford Anglia 105E Van - Royal Mail - Diecast! $8.60 Hornby L M S Coach Brake First, R936, New and boxed $19.21
1:76 Morris Minor Station Wagon - Diecast! $8.60 100 Model Painted People Arab 1:100 Ho Scale Train New $14.40
Hornby Oo B.R. Class V Clifton Super Detail Pack Loco $15.00 Hornby Oo Sr Class N15 Locomotive &Tender Sir Dinadan $24.99
Dapol 00 Class 155 Super Sprinter 2-Car Dmu Mimb!! $100.00 Mainline Oo Scale Br Patriot 45532 Illustrious New $35.00
t9048-40pcs Scale Railway Layout Set Model Trees Oo Ho $9.78 100x Building Train Model 1:75 Scale Painted Figures Oo $4.97
1939 - Nason Railways 5th Anniversary Catalog $8.88 Triang 00 signal box R61 Made in Australia $9.60
Lt15-40pcs Scale Scenery Layout Model Lamppost Lamp Ho $12.49 Brand New Pair Hornby Private Owner 7-Plank Wagons $15.37
New In Pack Flush Glazing For Tri-Ang R157 Dmu $1.15 New In Pack Flush Window Glaze For Hornby Class 110 Dmu $1.15
Lf-40pcs Scale Scenery Layout Model Lamppost Lamp Ho Tt $12.45 Triang Hornby Motorised Turntable 00 Scale $95.08
Cooper Craft kit 1011 Gwr Q1 provender wagon $5.28 Southern Railway / Br Kit-Built 0-6-0 Loco $95.08
Dapol C42 Interfrigo refrigerator van kit $5.28 Dapol C44 Lowmac 15T machine wagon kit $5.28
Dapol C28 15T rail mounted diesel hydraulic crane kit $8.16 1:76 Melbourne City Circle W7 Tram - City Of Vienna $86.43
Bachmann B1 $115.25 Hornby Princess $144.06
L006c-40pcs Scale Railway Layout Model Lamppost Lamp Oo $17.55 40 oo scale figures some sitting great for large scene $4.99
Merit- Vintage Oo & Ho Gauge Army Personnel - England $3.99 24 X Painted Model People 1:87 Ho Gauge Train Railway $5.99
20×Model Pinaster Pine Trees Train Scenery 110mm(H) S51 $13.44 Hornby 3 Rail Guard'S Van $8.16
Hornby Dublo 8 Wheels Bogie Bolster Wagon $8.16 Hornby R023 Bulk Grain Hopper Wagon $9.59
Hornby R032 'Hargreaves' End Tipper Wagon $9.59 Hornby R017 Flat Wagon With 'Freightliner' Container $9.59
Hornby R095 Twin Silo Wagon Bulk Powder $9.59 Hornby R249 Mgr Hopper Wagon 'Speedlink' Livery $9.59
Hornby R119 'Shell Oils' Tank Wagon (Tta) $9.59 Hornby R071 'Duckhams' Tank Wagon $9.59
Hornby R731 'Gulf' Tank Wagon $9.59 Hornby R016 45 Ton Van (Vda) Sector $9.59
Hornby R247 Br Closed Van 'Speedlink' Livery $9.59 Bachmann Crab 2-6-0 Mogul Steam Locomotive 32-179 New! $182.43
30x Model Tree Railway War Games Landscape Scenery - Oo $6.71 Scale Train Model Layout Grass Mat 1x2.5m green Ho N $24.07
1:76 Morris Minor Van - Pickfords - Diecast! $8.60 1:76 Morris Minor Convertible - Diecast! $8.60
Triang Oo Switcher, Yellow $5.95 Triang Oo Flatcar w 3 Container Load $7.95
1:76 Mark I Ford Cortina Police - Diecast! $8.60 1:76 Morris Minor Van - Police - Diecast! $8.60
1:76 Chipperfields Circus Ford Cortina - Diecast! $8.60 1:76 Mgb Roadster - Yellow - Diecast! $8.60
1:76 Scania R420 Semi Trailer - Diecast! $35.53 1:76 Morris Minor Van - British Rail - Diecast! $8.60
Model Scene 5089 15 mail bags Dutch auction 3 available $3.31 Model Scene 5004 8 gas lamp posts Dutch auct 3 availab $4.99
Model Scene 5062 trunks, suitcases & trolleys $3.79 1:76 Huge Scammell Trailer/Load Setup - Diecast! $54.74
Model Scene 5051 6 level signs & mile posts $3.31 Hornby Dublo Meccano Shell Oil Tanker Carriage $9.59
Model Scene 5006 2 phone boxes $5.95 1:76 Chipperfields Circus Morris Minor - Diecast! $8.60
G-S Hypo Cement N3/N/Ho/Hon3/S/Sn3/On2/On 3/On30/O/G 1/4 $4.99 Hornby Princess Body - Lady Patricia $15.36
1:76 Morris Minor Van - Post Office - Diecast! $8.60 Fv: Dapol D19 Gwr 14Xx Class 0-4-2 Loco #1420 $34.99
Fv: Dapol Siphon H Gwr Chocolate Brown $8.99 Fv: Lima 305628W Gwr Horse Box Chocolate Brown $8.99
Fv: Dapol B125 Macaw Bolster Wagon Gwr $8.99 Fv: Dapol B18 5 Plank Wagon Gwr Grey $6.99
Wiking 1/87 Oo/Ho Gauge Still R 70-25 Forklift Truck $7.43 Mainline Pali 00 Scale Locomotive (not hornby) $10.00
Hornby Princess Elizabeth 6201 Loco with L M S Tender $17.16 Hornby R. 073 Po Locomotive Red Pannier 0-6-Opt, As New $8.99
Hba 21 ton Hopper wagon - Dapol Mib $1.99 1:76 Scale Melbourne W6 Class Restaurant Tram! $86.43
Base Toys - Ford Cortina Mk 1 - 1:76 Oo Railway $9.12 Pair Boxed Hornby Dublo 3 Rail Corridor / Guard Coaches $34.57
Early Triang 'Princess Elizabeth' loco Vg condition $19.20 10Ba " 1" brass bolts countersunk 1 available $2.55
10Ba 3/4" brass bolts countersunk Dutch auct 3 availabl $2.69 Oo Scale B.R Sk Coack. Maroon 2Nd Class $4.80
10Ba 1" brass bolts cheesehead Dutch auct 2 available $2.69 Lot 4 x Bachmann Branch-Line 12T Planked Vent Vans New! $76.78
Set 3 x Bachmann Passenger Coaches Lms Suit Hornby New! $124.80 12 ton Covered Wagon Van/ Box Car Oo Scale Train Model $9.99
1:76 Mark I Ford Cortina - Diecast! $8.60 Lionel 00 Gauge Shell Tank Car 0045 8126 $5.99
Lionel 00 Gauge 077 Nyc Caboose $5.99 Unusual antique Champion flyer Train made in England $91.24
24x Assorted People Model Train Scenery Landscape Oo $7.67 Wiking 1/87 Oo/Ho Gauge Claas Axion 850 Tractor New $19.81
Wiking 1/87 Oo/Ho Gauge Claas Twin Axle Tipping Trailer $13.86 Wiking 1/87 Oo/Ho Krampe Half Pipe Tipping Trailer $13.86
Wiking 1/87 Oo/Ho Gauge Claas Rollant 355 Baler $13.86 Triang Hornby Oo R825 Budd Rail Car, Nth Pac, Ec (165) $96.03
Triang Battlespace Oo R341K Anti Aircraft Wagon (162) $144.06 Wiking 1/87 Oo/Ho Gauge Joskin Manure Spreader $13.86
Click to see more OO Scale items
Prices current as of last update, 07/06/08 8:35pm.


Home Contact Resources Exchange Links eBay