Skip to content

Instantly share code, notes, and snippets.

@mohamadhadibi
Last active February 16, 2020 11:12
Show Gist options
  • Save mohamadhadibi/e87706dd139020a81fd1c35ecf1f0fe7 to your computer and use it in GitHub Desktop.
Save mohamadhadibi/e87706dd139020a81fd1c35ecf1f0fe7 to your computer and use it in GitHub Desktop.
@Test
fun setRam(){
val laptop = Laptop("lenovo")
try {
//laptop.ram = 2
println("ram: ${laptop.ram}")
laptop.getLaptopPad()
println("ram after config: ${laptop.ram}")
}catch (e:Exception) {e.printStackTrace()}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment