Ob­ject-ori­ented pro­gram­ming

Web Designer - - Developer Tutorials -

The con­cept be­hind ob­ject-ori­ented pro­gram­ming re­lies on the con­cept of defin­ing a blue­print that can be reused to cre­ate mul­ti­ple ob­jects based on the same spec­i­fi­ca­tion. Think of it like fac­tory pro­duc­tion; a ‘class’ blue­print is de­signed to al­low the fac­tory to cre­ate many ob­ject ‘in­stances’ made to the spec­i­fi­ca­tion of the ‘class’ blue­print. In ad­di­tion to al­low­ing the same def­i­ni­tion to be reused mul­ti­ple times, ob­ject-ori­ented pro­gram­ming al­lows for each ob­ject ‘in­stance’ to have unique prop­er­ties. In this tu­to­rial, forms have been set to have unique ti­tles and tar­gets to con­trol. This is handy for al­low­ing code to adapt to dif­fer­ent re­quire­ments.

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.