Example Code Used in This Chapter

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

The Person Class Example: C# .NET

// Class Personusing System;using System.Collections;using System.IO;using System.Xml;using System.Xml.Serialization;namespace CSSerial{    [XmlRoot("person")]    public class Person    {        private String strName;        private int intAge;        private int intScore;        public Person()        {            this.Name = "John Doe";            this.Age=25;            this.Score=50;        }        public Person(String name, int age, ...

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.