2023-10-18 19:08:16 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace KOP_Labs.Classes
|
|
|
|
|
{
|
|
|
|
|
public class Book
|
|
|
|
|
{
|
2023-11-03 09:59:23 +04:00
|
|
|
|
|
|
|
|
|
public string Author { get; private set; } = string.Empty;
|
2023-10-18 19:08:16 +04:00
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
public string Name { get; private set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public string Annotation { get; private set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Book()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2023-11-03 09:59:23 +04:00
|
|
|
|
public Book(string author, int id, string name, string annotation)
|
2023-10-18 19:08:16 +04:00
|
|
|
|
{
|
2023-11-03 09:59:23 +04:00
|
|
|
|
Author = author;
|
2023-10-18 19:08:16 +04:00
|
|
|
|
Id = id;
|
|
|
|
|
Name = name;
|
|
|
|
|
Annotation = annotation;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|