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 web site. These examples correspond to the Java code that is listed inside the chapter itself.
The TestPerson Example: C# .NET
using System;namespace ConsoleApplication1{ class TestPerson { static void Main(string[] args) { Person joe = new Person(); joe.Name = "joe"; Console.WriteLine(joe.Name); Console.ReadLine(); } } public class Person { //Attributes private String strName; private String strAddress; //Methods public ...
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.