For my class I have to have a class for my Name, Course tittle, instructor and assignment to write in the console as a heading. The assignment portion I have to pass as an argument from the main class. My question is if there is a way that I can pass the namespace through instead of having to pass the assignment name as a string. Did that make sense?

Essentially I want to make a class that I could stick into any of my assignments and have the namespace show up as the assignment title.

Output:

Name: John Doe
Course: Object Oriented Programming
Instructor: Joseph Middleton
Assignment: <namespace>

If anyone could point me in the right direction or let me know if this is even possible it would be appreciated!