# 8. Classes in Scala homework ### Тема домашней работы Внимательно просмотрите код. * Основной код * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/main/scala/karazin/scala/users/group/classes/homework/Homework.scala * Тесты * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/HomeworkSpecification.scala * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/arbitraries.scala * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/utils.scala ## Задания ### Preface Implement all the things with `???` body. *All tests should pass.* I have additional test for the functionality. My tests also *should pass*. Feel free to add more test cases. ### How to pass Create a new branch `homework-8`. You *should not* commit your solution to your `*master*` branch, only to `homework-8` branch. You can do as many commits as you want to `homework-8`. Please provide any commit wiht meaningful commit message following the format ``` HOMEWORK-8 - <brief explanation> <detailed explanation if neede> ``` Yes, `HOMEWORK-8` is in upper case. Yes, `HOMEWORK-8` then ` ` (**space**) then `-` (**dash**) then ` ` (**space**) then brief explanation. After the implementation (with tests) is done create *merge request* (aka code review aka pr) and add me as a reviewer... and the battle begins! ### Code templates The implementation should be done here: * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/main/scala/karazin/scala/users/group/classes/homework/Homework.scala * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/HomeworkSpecification.scala * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/arbitraries.scala * https://github.com/KarazinScalaUsersGroup/scala-course-2020/blob/master/src/test/scala/karazin/scala/users/group/classes/homework/utils.scala ### Arithmetic operations Implement following arithmetic operations for rational numbers: * equality * addition * negation * substraction * multiplication * division ## Проблемы с подсветкой синтаксиса для Dotty Проверьте настройки проекта: ![](https://i.imgur.com/Li71dFd.png) ![](https://i.imgur.com/3Aeic62.png) ## Ограничение доступа к форку Удалите группу `scala-course-2020` из форка, как это показано здесь: ![](https://i.imgur.com/vlQRWD8.png)