Loading practice questions
Which of the following is true about extension functions in Kotlin?
Correct Answer: D — They allow adding new functionality to existing classes without inheritance
Explanation:
Extension functions in Kotlin let you add new functionality to existing classes without modifying their source code or inheriting from them.