using System;
using System.Collections.Generic;
using System.Text;
namespace XmlDocCar
{
///
/// This is a simple Car.
///
public class Car
{
///
/// Do you have a sunroof?
///
private bool hasSunroof = false;
///
/// The ctor lets you set the sunroofedness.
///
///
public Car(bool hasSunroof)
{
this.hasSunroof = hasSunroof;
}
///
/// This method allows you to open your sunroof.
///
///
public void OpenSunroof(bool state)
{
if (state == true && hasSunroof == true)
Console.WriteLine("has sub roof!");
else
Console.WriteLine("you don't have a sunroof.");
}
}
}