Complete the code to define the layer responsible for business rules in Clean Architecture.
class [1] { fun execute() { // Business logic here } }
The DomainLayer contains the business rules and logic in Clean Architecture.
Complete the code to declare the layer that handles UI and user interaction.
class [1] { fun show() { // Display UI } }
The PresentationLayer manages UI and user interaction in Clean Architecture.
Fix the error in the code by selecting the correct layer name for data access.
class [1] { fun fetchData() { // Access database or network } }
The DataLayer is responsible for data access like databases or network calls.
Fill both blanks to complete the interface and its implementation for the DataLayer.
interface [1] { fun getData(): String } class [2] : [1] { override fun getData() = "Data" }
The Repository interface defines data operations, and RepositoryImpl implements it in the DataLayer.
Fill all three blanks to complete the use case class calling the repository method.
class [1](private val [2]: [3]) { fun execute() = [2].getData() }
The use case GetUserData calls the repository of type Repository to get data.