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...


What is the default visibility modifier and also list the different types of modifiers?



What is the default visibility modifier and also list the different types of modifiers?..

Answer / Ankush Gupta

In Kotlin, the default visibility for functions, properties, and constructors is public. The other visibility modifiers are private, protected, internal, and open. For types (classes, objects, interfaces), the default visibility is public and the other visibility modifier is internal.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

How is a function declared? Why are Kotlin functions known as top-level functions?

0 Answers  


Is kotlin strongly typed?

1 Answers  


Explain the Main features of kotlin which are not available in java?

1 Answers  


Can we create uninitialized array in kotlin?

1 Answers  


Does Kotlin support primitive Datatypes?

1 Answers  


What is the difference between Return Type Unit and Return Type Nothing in Kotlin?

1 Answers  


How to create static methods in Kotlin?

1 Answers  


What are the advantages of using kotlin?

1 Answers  


What does "Null Safety" mean in Kotlin?

1 Answers  


Explain kotlin’s null safety?

1 Answers  


What are the features available in kotlin but not in java?

1 Answers  


What is inner class in Kotlin?

1 Answers  


Categories