Fundamentals Of Computer Programming With C# - ... Official

Next, Codey had to polish 100 brass gears. Instead of doing them one by one, he used a ."Repeat this action," he commanded, "starting at gear 0, until you reach gear 100, adding 1 each time." With a flash of light, the gears spun on their own, polishing themselves in a blur of efficiency. Chapter 4: The Spellbook (Methods)

Codey realized he was writing the same instructions over and over. DotNet gave him a small leather book. "Write your instructions here and give them a name," he said.Codey wrote down the steps to LightFire() . Now, whenever he needed warmth, he didn't have to think about the wood or the flint; he just called the by name, and the flames roared to life. Chapter 5: The Blueprints (Classes & Objects) Fundamentals of Computer Programming with C# - ...

Finally, it was time to build the Automaton. DotNet showed him a master —a blueprint called Robot ."The Class isn't the robot itself," DotNet explained. "It's the idea of the robot."Codey used the blueprint to create an Object named Sparky . Sparky had his own jars (properties) and his own spells (methods). By creating more objects from the same blueprint, Codey soon had an entire army of assistants. Next, Codey had to polish 100 brass gears

The third was bool —it held a light that was either glowing (true) or dark (false)."A program is just moving things between these jars," DotNet whispered. Chapter 2: The Fork in the Road (Conditions) DotNet gave him a small leather book

One morning, the Grand Architect, , sat Codey down. "To build anything great," DotNet said, "you must first master the building blocks." Chapter 1: The Magic Jars (Variables & Data Types)

The first jar was labeled int —it could only hold solid stones (whole numbers). The second was string —it held scrolls of text.

Previous
Previous

Sunrise on the Reaping

Next
Next

The Difficult Doctrine of the Love of God