Getting started - iouState

I am working on the R3 Corda helloworld tutorial which is at this url: https://docs.corda.net/hello-world-state.html

.... and use the most recent version of the IntellJ community.

The tutorial changes the class name in TemplateState.kt from TemplateState () to IOUState (). Is it required to rename the Kotlin source file from TemplateState.kt to IOUState.kt? It is not clear in this guide.

+3


source to share


1 answer


Kotlin source files do not have to match the name of the class they contain. In fact, you can have multiple class declarations in the same source file, or even have a source file with no classes and only top-level functions or values.



+3


source







All Articles