Pages

Wednesday, February 10, 2016

მე-8 დღე



გამოცტაააააააააა



Lesson 8. Task 2.


  1. Cellphone class.
  2. Properties (model, weight, length, width … add more)
  3. Create class with properties and methods. Methods list: __contruct($model, $weight… add more), get_number(), getModel(), getSizes(), sendSMS($number), calltoNumber($number).
Task:
  1. Create object with properties.
  2. Call methods get_number(), getModel(), getSizes().
  3. Call methods sendSMS($number), calltoNumber($number).


Results:
for 2. Number: +99554455435, Model: Fly, Sizes: 145x55x23
for 3. I sent SMS to number: +9955324223, I am do call to number: +9955324223,


Additional task:

  1. Create methods for setting: model and weight.
  2. Create new class with name Samsung or Iphone. This class should inherit base class CellPhone with new method showVideo($filename) and new properties screenSize = 4”. and new method getScreenSize().


Post answers: https://goo.gl/VHjZaT


For reading:



https://www.youtube.com/watch?v=TnhngOt1qMo
https://www.youtube.com/watch?v=ptW8SxPEblc
https://www.youtube.com/watch?v=4EuxGsD32TY

https://www.youtube.com/playlist?list=PLxiNk3tfKuFmAcmQd2bXMQ_aXOdE9sRxn  lynda.com



კლასის სახლი    სასურველია დაიწყოს დიდი ასოთი  Phone შეიძლება ქვედა ხაზი Phone_Z1
(არაა რეკომენდებული თუმცა შეცდომა არაა phone_z1).

21_phone შეცდომაა


მეთოდი არის ფუნქცია




1 comment: