Thursday, 14 January 2016

Java Tutorial : Java Interface(Allowed access modifiers)


Click here to watch in Youtube :
https://www.youtube.com/watch?v=bnQrkn1O5nk&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java Interface(Allowed access modifiers) 
Java Tutorial : Java Interface(Allowed access modifiers) 
Java Tutorial : Java Interface(Allowed access modifiers) 
Person.java
package mypack1;

public interface Person
{
    void walk();
}
Student.java
package mypack1;

public class Student implements Person
{

    @Override
    public void walk()
    {
        System.out.println("Student walks slowly");

    }

}
Employee.java
package mypack2;

import mypack1.Person;

public class Employee implements Person
{

    @Override
    public void walk()
    {
        System.out.println("Student walks fast");

    }

}
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/InterfaceDemo-AccessModifiers-App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/InterfaceDemo-AccessModifiers-App/InterfaceDemo

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/fa67e02bcd9efeae1c2ea3019677c5252e4db5f7/BasicJava/InterfaceDemo-AccessModifiers-App/InterfaceDemo/?at=master

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment

    Google+ Followers

    Google+ Badge