Example Code Used in This Chapter

The following code is presented in C# .NET. Code for other languages, such as VB .NET and Objective-C, are available electronically on the publisher’s website. These examples correspond to the Java code that is listed inside the chapter itself.

The TestCab Example: C# .NET

using System;namespace ConsoleApplication1{    class TestPerson    {        public static void Main()        {            Cabbie joe = new Cabbie("Joe", "1234");            Console.WriteLine(joe.Name);            Console.ReadLine();        }        }    public class Cabbie    {            private string _Name;            private Cab _Cab;            public Cabbie() {             _Name = null;             _Cab = ...

Get The Object-Oriented Thought Process, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.