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 to declare a Kotlin variable?

1 Answers  


Can Kotline offer any additional functionality for standard Java packages or standard Java classes?

1 Answers  


What is the Target Platform of Kotlin? How is Kotlin-Java interoperability possible?

1 Answers  


List the number of constructors available in Kotlin?

1 Answers  


Can you migrate the code from java to kotlin? If yes how do you do it?

1 Answers  


How do you declare a variable in kotlin?

1 Answers  


Give a syntax for declaring a variable as volatile in Kotlin?

1 Answers  


Define when expression?

1 Answers  


Is there any Ternary Conditional Operator in Kotlin like in Java?

1 Answers  


Why to use kotlin?

1 Answers  


How are Primary Constructors different from Secondary Constructors ?

1 Answers  


Give example to declare variable using both val and var in Kotlin?

1 Answers  


Categories