Classs and Object Using Real Time Example Program

Class and Object Using Real-Time Example Program:

Question 1:

Create a class Student with name and register_number variables initialized in the constructor. Implement a display method to print the student details. Create two objects (s1 and s2), update their values, and display the information.


Program:




Output :



Post a Comment

0 Comments