Zhelovanov_Dmitrii_COP/KOP_Labs/Classes/Book.cs

34 lines
590 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KOP_Labs.Classes
{
public class Book
{
public string Author { get; private set; } = string.Empty;
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
public string Annotation { get; private set; } = string.Empty;
public Book()
{
}
public Book(string author, int id, string name, string annotation)
{
Author = author;
Id = id;
Name = name;
Annotation = annotation;
}
}
}