34 lines
590 B
C#
34 lines
590 B
C#
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;
|
|
|
|
}
|
|
|
|
}
|
|
}
|