გამოცტაააააააააა
Lesson 8. Task 2.
- Cellphone class.
- Properties (model, weight, length, width … add more)
- Create class with properties and methods. Methods list: __contruct($model, $weight… add more), get_number(), getModel(), getSizes(), sendSMS($number), calltoNumber($number).
Task:
- Create object with properties.
- Call methods get_number(), getModel(), getSizes().
- 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:
- Create methods for setting: model and weight.
- 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().
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 შეცდომაა
მეთოდი არის ფუნქცია
nice blog.thank you.
ReplyDeletelearn php7