Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Protected Access Modifier package two

// Java program to illustrate
 protected modifier
package two;
import one.*; // importing all classes in package one
 
// Class B is subclass of A
class B extends A
{
public static void main(String args[])
{
    B obj = new B();
    obj.display();
}
   
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Java #Protected #Access #Modifier #package
ADD COMMENT
Topic
Name
1+9 =