Course Solutions Uncategorized (Solved) : Line 16 Code Showing Compilation Error Explain Write Correct Compilation Error 05 1 Public Q31607292 . . . .

(Solved) : Line 16 Code Showing Compilation Error Explain Write Correct Compilation Error 05 1 Public Q31607292 . . . .

 

Why line no 16 in the below code is showing compilationerror? Explain and write how to correct compilation error.[0.5]

1     publicclass X

2 {

3    privateint num=5;

4 }

5 public class Yextends X

6 {

7    publicvoid show()

8    {

9   System.out.println(num);

10   }

11 }

12 public class Test {

13   public staticvoid main(String[] args)

14   {

15        Yob=new Y();

16        ob.show();

17   }

18   }

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Question 1 Individual Belong Religious Organization Unprotected Title Vii Religious Discr Q36079280(Answered) : Question 1 Individual Belong Religious Organization Unprotected Title Vii Religious Discr Q36079280

<p>QUESTION 1</p><ol><li><p>An individual who does not belong to a religiousorganization:</p><table><tbody><tr><td style="vertical-align:top;"/><td style="vertical-align:top;">A.</td><td style="vertical-align:top;"><p>is unprotected by Title VII against religiousdiscrimination.</p></td></tr><tr><td style="vertical-align:top;"/><td style="vertical-align:top;">B.</td><td style="vertical-align:top;"><p>may not claim the right to reasonable accommodation of