Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why do we need write open before class name in Kotlin while working on inheritance?



Why do we need write open before class name in Kotlin while working on inheritance?..

Answer / Kumar Vivekanand Vivek

In Kotlin, the `open` keyword is used to declare a class as open for inheritance. By default, classes in Kotlin are final and cannot be inherited from. When you use `open`, it allows other classes to extend the current one.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Can we create uninitialized array in kotlin?

1 Answers  


What does "Null Safety" mean in Kotlin?

1 Answers  


Give me name of the extension methods Kotlin provides to java.io.File

1 Answers  


How do you check if two Strings are equal valued ?

1 Answers  


What is the difference between val and var?

1 Answers  


Which type of programming does kotlin support?

1 Answers  


How do you realize Ternary Conditional Operator in Kotlin ?

0 Answers  


When instruction in Kotlin are executed ?

1 Answers  


What are High-Level Functions in Kotlin?

1 Answers  


What are different types of constructors in kotlin?

1 Answers  


Describe the use of extension function?

1 Answers  


Why you should shift from Java to kotlin?

1 Answers  


Categories