Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Zad4
- {
- class BookShop
- {
- public BookShop (string bookTitle, string bookAuthor, int bookPublishDate, double bookPrice)
- {
- _bookTitle = bookTitle;
- _bookAuthor = bookAuthor;
- _bookPublishDate = bookPublishDate;
- _bookPrice = bookPrice;
- }
- public string bookTitle { get { return _bookTitle; } }
- private readonly string _bookTitle;
- public string bookAuthor { get { return _bookAuthor; } }
- private readonly string _bookAuthor;
- public int bookPublishDate { get { return _bookPublishDate; } }
- private readonly int _bookPublishDate;
- public double bookPrice { get { return _bookPrice; } }
- private readonly double _bookPrice;
- public bool ReleaseBookDateBefore2010()
- {
- return bookPublishDate < 2011;
- }
- public bool LemsBook()
- {
- return bookAuthor == "Lem";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement