Skip to content

Task:2

Saad Tariq requested to merge Task-2 into main
    • Using encapsulation write a program in java that encapsulates Student's information (name, roll no etc)

Solution: I have created a student class where all the student attributes are private and then I created getters and setters to set those attributes

Merge request reports