+ 1
Define a class Mobile to store the details of a mobile (company, model & price) with the following methods:
Define a class Mobile to store the details of a mobile (company, model & price) with the following methods: i) set_details() - to set the values to the data attributes ii) display_details() - to display the data attribute values. Create an object of the class and invoke the methods.
2 Antworten
+ 2
Can you post your attempts?
+ 2
I am trying ,My attempt will post soon.