Розширити клас LibraryStatisticsAnalyzer, додавши в нього методи GetBooksByAuthor, GetBookByTitle, GetBookByArticul.
-
Create a new branch named "step3".
-
Extend the LibraryStatisticsAnalyzer class by adding the GetBooksByAuthor(), GetBookByTitle(), GetBookByArticul() methods to it:
public List<Book> GetBooksByAuthor(string author)
{
// TODO step 3.
return [];
}
public Book GetBookByTitle(string title)
{
// TODO step 3.
return new Book();
}
public Book GetBookByArticul(string articul)
{
// TODO step 3.
return new Book();
}
-
Assemble the project, fix bugs and warnings (if any).
-
Save changes as a separate commit.
-
Merge the "step3" branch with the "master" branch.
Materials for self-study: