Vidyalelo
Computer Science · Q93

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 93

Q93

How do you define a property in Kotlin that can only be accessed within the same class?

A.
Using the keyword "internal"
B.
Using the keyword "protected"
C.
Using the keyword "private"
Answer
D.
Using the keyword "local"

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board