Object Oriented Programming With JavaTU Board 2023
Write a program to create a class named "person" with number field "age". Throw an exception if the user enters negative number for the age.
5A worked answer is on its wayMeanwhile, read the Object Oriented Programming With Java notes for this topic.
Discussion
Loading…