Task:2
-
- 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