File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Abstract clss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Abstract clss" Watch "Abstract clss" New topic
Author

Abstract clss

Malhar Me
Greenhorn

Joined: Jun 22, 2009
Posts: 27
Hi,

Just want to confirm this:

abstract class test1 {
public void myTest(){
}
public abstract void another test();
}



public class maintest extends test1{
public static void main(String [] args){
test(){}
myTest(){}
}
}

Will it work?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Please use the code button?

What do you think? You ought to be able to work out the answer simply by reading that code.
Gokul Nanthakumar
Ranch Hand

Joined: May 11, 2010
Posts: 56
Malhar Me wrote:Hi,

Just want to confirm this:

abstract class test1 {
public void myTest(){
}
public abstract void another test();
}



public class maintest extends test1{
public static void main(String [] args){
test(){}
myTest(){}
}
}

Will it work?


I think there is a typing mistake in this... you mean this

public class maintest extends test1{
test(){}

myTest(){}


public static void main(String [] args){


}
}
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
You may be correct about typing errors, Gokul Nanthakumar. Malhar Me, please remember this.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Malhar Me wrote:

Please check your private messages for an important administrative matter


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract clss
 
Similar Threads
Static Method/Non-Static Method, RTTI
Reg. abstract class and method
Shallow in static method ?
abstract inner classes
q on abstract class