Check out example codes for "a type annotation is required on a value parameter kotlin". It will help you in understanding the concepts better.

Code Example 1

fun testMethod(inst: Base) {
    inst.method()
}

Learn ReactJs, React Native from akashmittal.com