class SoftwareEngineering:
pass
class Biography(SoftwareEngineering):
def __init__(self, name, title1, title2):
self.__name = name
self.__title1 = title1
self.__title2 = title2
def __str__(self):
return f"Name: {self.__name}\nTitle 1: {self.__title1}\nTitle 2: {self.__title2}"
bio_obj = Biography(
name="Alejandra Lopez",
title1="Bachelor in Software Engineering",
title2="Technologist in Coordination of Music Schools",
)
print(bio_obj)