The document defines a Product class with properties for ID, name and price, and a Display method to output those properties. It then creates a Program class with a Main method that gets user input for a product and calls the Display method.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views
Program
The document defines a Product class with properties for ID, name and price, and a Display method to output those properties. It then creates a Program class with a Main method that gets user input for a product and calls the Display method.