package Ġcom . example . helloworld čĊč Ċ fun Ġmain (){ čĊĠĠĠ Ġvar Ġphone 1 Ġ= ĠMobile Phone (" Android ", Ġ" S amsung ", Ġ" G alaxy Ġs 1 0 ") čĊĠĠĠ Ġvar Ġphone 2 Ġ= ĠMobile Phone (" Android ", Ġ" S amsung ", Ġ" G alaxy ĠNote Ġ 9 ") čĊĠĠĠ Ġvar Ġphone 3 Ġ= ĠMobile Phone (" iOS ", Ġ" Apple ", Ġ" iPhone Ġ 1 1 ĠPro ") čĊčĊĠĠĠ Ġvar Ġnow Battery Ġ= ĠMobile Phone (). charge Battery ( 4 5 ) čĊčĊĠĠĠ Ġprintln ( now Battery ) čĊč Ċ } čĊč Ċ class ĠMobile Phone Ġ Ġ( os Name Ġ: ĠString Ġ= Ġ" OS ", Ġbrand Ġ: ĠString Ġ= Ġ" Brand ", Ġmodel Ġ: ĠString Ġ= Ġ" Q W ERT 1 2 3 "){ čĊčĊĠĠĠ Ġprivate Ġvar Ġbattery Ġ= Ġ 4 0 čĊčĊĠĠĠ Ġfun Ġcharge Battery ( char ged By Ġ: ĠInt ){ čĊĠĠĠĠĠĠĠ Ġprintln (" Battery Ġwas Ġat Ġ$ battery Ġand Ġafter Ġch arging , Ġit Ġis Ġat Ġ${ battery Ġ+ Ġchar ged By }") čĊĠĠĠĠĠĠĠ Ġbattery Ġ+= Ġchar ged By čĊčĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġinit Ġ{ čĊĠĠĠĠĠĠĠ Ġprintln (" Initialized Ġa Ġnew ĠMobile ĠPhone Ġobject Ġwith Ġ" Ġ+ čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" os Name Ġ= Ġ$ os Name Ġbrand Ġ= Ġ$ brand Ġmodel Ġ= Ġ$ model ") čĊĠĠĠ Ġ} č Ċ }