Тест по Lua : Вопрос 1 : 15

Что будет напечатано в результате выполнения данного кода?

a, b = {}, {} 
 a.f = 0 
 function a:set(v) 
 self.f = v 
 end 
 function a:get() 
 return self.f 
 end 
 function b:set(v) 
 self.f = v + 1 
 end 
 function b:get() 
 return self.f + 1 
 end 
 n = setmetatable({}, { __index = a }) 
 m = setmetatable(getmetatable(setmetatable({}, { __index = b })).__index, { __index = a }) 
 a.set(m, 1) 
 n:set(1) 
 print(n:get() + m:get())
1 балл


© Copyright © 2017 - 2019 Все права защищены. Бесплатное онлайн образование.
  • https://disdik.munabarat.go.id/nusantara/slot/
  • https://dispendik.sidoarjokab.go.id/nuansa/gacor/
  • https://dkpd.grobogan.go.id/jakarta/gacor/
  • https://sbobet88.blog.unsia.ac.id
  • https://pafinusantara.blog.unsia.ac.id/bet88
  • https://idn-poker.blog.unsia.ac.id
  • https://slot777-gacor.blog.unsia.ac.id
  • https://agen-188bet.blog.unsia.ac.id
  • https://situs-slot.blog.unsia.ac.id
  • https://bet88-slot.blog.unsia.ac.id
  • https://2021.kinerja.ekon.go.id/up/slot777
  • https://2021.kinerja.ekon.go.id/halal/bet88
  • https://program-gacor.blog.unsia.ac.id
  • surapati.ac.id
  • untagsby.ac.id
  • kingandiboston.com
  • janeashton.com
  • redbrickcafechester.com
  • villanosdeljazz.com
  • slot