Zhelovanov_Dmitrii_COP/KOP_Labs/Classes/Book.cs

34 lines
539 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;
2023-11-30 23:20:29 +04:00
public string Name { get; private set; } = string.Empty;
public string Annotation { get; private set; } = string.Empty;
public Book()
{
}
2023-11-30 23:20:29 +04:00
public Book(string author, string name, string annotation)
{
Author = author;
2023-11-30 23:20:29 +04:00
Name = name;
Annotation = annotation;
}
}
}