Question: Q2. Find And Correct The 4 Errors In The Following Code (1.5 Marks) Public Class Lab2App { Public Static Void Main(String[] Args) { Student Si

Q2. Find And Correct The 4 Errors In The Following Code (1.5 Marks) Public Class Lab2App { Public Static Void Main(String[] Args) { Student Si = New Student (100); Sl.Name = "Ahmed"; Sl.GetName(); Student Sl; Student S3 = New Student (200, "Mohammed"); } Class Student { Prvate Int Id; Prvate String Name; Public Student() { 1 Public Student (Int Id, String

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!