Tuesday, 16 February 2016

Java Tutorial : Java abstract class(normal method)


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

Click the below Image to Enlarge
Java Tutorial : Java abstract class(normal method) 
A.java
abstract class A
{
    abstract void hi();
    
    void bye()
    {
        System.out.println("Bye...");
    }

}

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();
        b.bye();
    }

}
Output
hi...
Bye...
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/AbstractClassDemo_normal_method_App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/AbstractClassDemo_normal_method_App

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/616eaf1c2bb4551c34e3415baa3ee3135766bffc/BasicJava/AbstractClassDemo_normal_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