lundi 3 mai 2021

question for write program to create class [closed]

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