.
Home About-us Privacy Policy Contact-us Services

Friday, October 16, 2015

Java - Final class program example - Allprogramexample

ad+1

final class rect
{
public void input1()
{
System.out.println("rect");
}
}

class box extends rect
{
public void input2()
    {
System.out.println("box");
}
}

class test
{
public static void main(String arg[])
{
box x=new box();
x.input1();
x.input2();
  }
  }




0 comments:

Post a Comment

Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates