Java - Object-Oriented Programming Concepts
You want to create a class
Student that stores a student's name and age, and has a method to print these details. Which code snippet correctly implements this?