Professional Documents
Culture Documents
Lesson08 - Exercises (PS11-12 Hoh Jungi)
Lesson08 - Exercises (PS11-12 Hoh Jungi)
Lesson08Ex1
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
namespace Lesson08Ex1
{
class ElectronicsShop
{
private string strShopName;
public ElectronicsShop(string s)
{
strShopName = s;
}
strBrand = Brand;
}
Phone objPhone;
Console.ReadKey();
}
}
}
Lesson08Ex2
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
namespace Lesson08Ex2
{
class Picture
{
private string strTitle;
private float fltPrice;
public Photograph(string Photographer, string Camera, string Title, float Price) : base(Title, Price)
{
strPhotographer = Photographer;
strCamera = Camera;
}
public Painting(string Artist, string Type, string Title, float Price) : base(Title, Price)
{
strArtist = Artist;
strType = Type;
}
Painting objPainting;
Console.ReadKey();
}
}
}