Please elaborate on the modifiers in Kotlin?
Developers which are used to personalize declarations are known as modifiers and there are four types of modifiers available in Kotlin.
These modifiers are
- Public- all the declarations are visible here
- Internal- it uses the declarations present on specific locations
- Private- declarations are contained in restricted files
- Protected- here declarations are secured and usually not available for top-level declarations.
BY Best Interview Question ON 07 Oct 2019