<Can Class name be used as type of variable declar...
# forum
r
Can Class name be used as type of variable declaration class SmartTvDevice : SmartDevice() { } class SmartHome(val smartTvDevice: SmartTvDevice) { } I have a question in the above syntax where Val smartTvDevice is mentioned. After colon the name SmartTvDevice is a type for variable. But I learned only these types in kotlyn docs. String, float, Boolean, int. Is class name can be used to for type? Thank you 1 post - 1 participant <a...