PIbd-33_FIrsov_Kirill_KOP/WinFormsApp1/SampleClass.cs

34 lines
798 B
C#
Raw Permalink Normal View History

2024-11-17 13:25:39 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WinFormsApp1
{
public class SampleClass
{
public string Name { get; set; }
public string Category { get; set; }
public string SubCategory { get; set; }
public override string ToString()
{
return Name + " " + Category + " " + SubCategory;
}
public SampleClass() {
Name = string.Empty;
Category = string.Empty;
SubCategory = string.Empty;
}
public SampleClass(string name, string category, string subCategory)
{
Name = name;
Category = category;
SubCategory = subCategory;
}
2024-11-17 13:25:39 +04:00
}
}