Monday, 15 February 2016

Java Tutorial : Java abstract class(abstract method)


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

Click the below Image to Enlarge
Java Tutorial : Java abstract class(abstract method)
A.java
abstract class A
{
    abstract void hi();

}

class B extends A
{
    void hi()
    {
        System.out.println("hi...");
    }

}
AbstractClassTest.java
public class AbstractClassTest
{

    public static void main(String[] args)
    {
        B b = new B();
        b.hi();
    }

}
Output
hi...
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/AbstractClassDemo_abstract_method_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/AbstractClassDemo_abstract_method_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/616eaf1c2bb4551c34e3415baa3ee3135766bffc/BasicJava/AbstractClassDemo_abstract_method_App/?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