Help for this page

Select Code to Download


  1. or download this
    package Student3;
    sub new {my $class = shift;
    ...
    
    }
    1;
    
  2. or download this
    #!/usr/bin/perl -w
    use Student3;
    ...
    $student1->add_courses(["C++", "Java"]);
    print "-" x 25, "\n";
    $student1->show_student;