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


Which is the default modifier for a method, variable, class?



Which is the default modifier for a method, variable, class?..

Answer / Ateequr Rehman

The default access modifier for methods and properties in Kotlin is private within the file they are defined. The default access modifier for classes is public.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

Does Kotlin support primitive Datatypes?

1 Answers  


How does string interpolation work in Kotlin? Explain with a code snippet?

1 Answers  


What are the Strings available in Kotlin ?

1 Answers  


Does Kotlin support both Explicit conversion and Implicit conversions?

1 Answers  


What is the entry point to a Kotlin program ? Give an example?

1 Answers  


Is it possible to migrate the code from Java to Kotlin?

1 Answers  


How can you declare a variable in Kotlin?

1 Answers  


How do you export code from Java to Kotlin?

1 Answers  


What is companion object?

1 Answers  


How do you declare ranges operator in kotlin?

1 Answers  


How to declare a variable in kotlin?

1 Answers  


What does "Null Safety" mean in Kotlin?

1 Answers  


Categories