any one can help me to put console read() in class

please help
6 Replies
hercules_x_x
hercules_x_xOP3y ago
Create a Teacher class with two private variables teacherName and teacherBirthYear. Create one public method to calculate and print the teacher’s name and age. You are only allowed to use the read-only property with get accessor to get the name and year which the teacher was born. Ask for user’s input for the name and year. Invoke the method. The sample output is as of the following:
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
hercules_x_x
hercules_x_xOP3y ago
how to make it ask the user tow times to enter the data Example enter yout name : enter your age : not one line enter age and name the pic above it show the it ask only one time i neeed to use tow writeline
ero
ero3y ago
Just separate the lines Stop inlining so much
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
hercules_x_x
hercules_x_xOP3y ago
thank u so much for ❤️ help
Want results from more Discord servers?
Add your server