﻿namespace design_pattern
{
	class Life
	{
		ILifeViewer lifeViewer;
		
		public int Max { get; set; } = 999;
		public int Current { get; set; } = 999;
		
		public Life( ILifeViewer viewer )
		{
			lifeViewer = viewer;
		}
		
		public void View()
		{
			lifeViewer.View( Max, Current );
		}
	}
}
