Skip to content

Instantly share code, notes, and snippets.

View mohamadhadibi's full-sized avatar
👁️

Mohad Hadi mohamadhadibi

👁️
  • Canada
View GitHub Profile
@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()}
}