Create a program to print the names of students by creating a Student class. If no name is passed while creating an object of the Student class, then the name should be "Unknown", otherwise the name should be equal to the String value passed while creating the object of the Student class. Add a function print_name which will print name stored in that object.
Aucun commentaire:
Enregistrer un commentaire