Kotlin will not compile this code snippet. What is wrong? class Employee class Manager : Employee()

Question:Kotlin will not compile this code snippet. What is wrong? class Employee class Manager : Employee()

1.In order to inherit from a class, it must be marked open

2.In order to inherit from a class, it must be marked public

3.In order to inherit from a class, it must be marked sealed

4.In order to inherit from a class, it must be marked override


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!