I need to Create a class called Color.
- Code 1 constructor
- That requires 2 parameters
- Code 2 properties
- 1 property is public
- 1 property is private
- Create an accessor and setter for the 1 private property
- Instantiate the class created above
- Output the two properties
I believe I have been able to create the class and as well the constructor but where am having my issues is the public/private properties as well as the other parts are troubling me.
class Color:
   def __init__(self,full_name,birthday ):
       self.name = full_name
       self.birthday = birthday
   def age(self):
      return self.birthday
   def fname(self):
       return _self.name
object = Color()
 
    