Variables, methods, functions, and structures declared protected can be accessed only by classes in the same package as the defining class or by subclasses of their defining class that exist in a separate package:
public class Person(private var fullName: String) {
protected name: String
get() = fullName
set(value) {
fullName = value
}
}