An object-oriented programming demonstration program that I wrote using Python programming language.

 am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGgThank you very much for your support.

Program Listing

class Cellphone:
    color = "Blue"
    model = "Liquid Z6 Plus"
    manufacturer = "Acer"


phone1 = Cellphone()
phone1.color = "Silver"
phone1.model = "iPhone 12 Pro"
phone1.manufacturer = "Apple"
print("First phone color: ", phone1.color)
print("First phone model: ", phone1.model)
print("First phone manufacturer: ", phone1.manufacturer)
print()

phone2 = Cellphone()
phone2.color = "Black"
phone2.model = "Evolve X"
phone2.manufacturer = "Blackberry"
print("Second phone color: ", phone2.color)
print("Second phone model: ", phone2.model)
print("Second phone manufacturer: ", phone2.manufacturer)
print()

phone3 = Cellphone()
phone3.color = "Sorta Sage"
phone3.model = "Pixel 5"
phone3.manufacturer = "Google"
print("Third phone color: ", phone3.color)
print("Third phone model: ", phone3.model)
print("Third phone manufacturer: ", phone3.manufacturer)
print()

phone4 = Cellphone()
phone4.color = "Frost Crystal"
phone4.model = "Honor 50 Pro"
phone4.manufacturer = "Honor"
print("Fourth phone color: ", phone4.color)
print("Fourth phone model: ", phone4.model)
print("Fourth phone manufacturer: ", phone4.manufacturer)
print()

Phone5 = Cellphone()
Phone5.color = "Blue"
Phone5.model = "Wildfire E3"
Phone5.manufacturer = "HTC"
print("Fifth phone color: ", Phone5.color)
print("Fifth phone model: ", Phone5.model)
print("Fifth phone manufacturer: ", Phone5.manufacturer)
print()

Leave a Reply

Your email address will not be published.