Skip to content

Commit

Permalink
minor error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yrojha4ever committed Sep 3, 2015
1 parent 1e3b4fe commit ea29d2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
2 changes: 1 addition & 1 deletion src/org/pkgpvt/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void main(String[] args) {
System.out.println( jc.jCourse ); //Java
jc.showCourse(); //Course Name is: Java

jc.jAdvCourse; //Error: private field not visible
//@UNCOMMENT jc.jAdvCourse; //Error: private field not visible

jc.showAdvJavaCourse();//Course Name is: Advance Java

Expand Down
10 changes: 5 additions & 5 deletions src/org/stud/Student.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.pkgpvt.JavaCourse;

package org.stud;

import org.pkgpvt.JavaCourse;

public class Student {

Expand All @@ -9,10 +9,10 @@ public static void main(String[] args) {
JavaCourse jc = new JavaCourse();

//Package-Private
System.out.println( jc.jCourse ); //Java
jc.showCourse(); //Course Name is: Java
//@UNCOMMENT System.out.println( jc.jCourse ); //Java
//@UNCOMMENT jc.showCourse(); //Course Name is: Java

jc.jAdvCourse; //Error: private field not visible
//@UNCOMMENT jc.jAdvCourse; //Error: private field not visible

jc.showAdvJavaCourse();//Course Name is: Advance Java

Expand Down

0 comments on commit ea29d2b

Please sign in to comment.