January 2018
Intermediate to advanced
414 pages
10h 29m
English
Now, in IntelliJ, we can set the cursor on the CustomerService word and click Alt + Enter to show the actions, then we can choose to implement the interface. A new window will show asking for a name. It will have already populated CustomerServiceImpl, so we leave it as it is and click OK.
Now, we will see the methods of the interface that we like to implement. We can choose the first one and then press Shift and the last one to select them all. A new class will appear with this code:
package com.microservices.chapter3class CustomerServiceImpl : CustomerService { override fun getCustomer(id: Int) : Customer? { TODO("not implemented") } override fun createCustomer(customer: Customer) { TODO("not implemented") } override ...
Read now
Unlock full access