aspose file tools*
The moose likes Beginning Java and the fly likes abstract / non abstract class 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 / non abstract class" Watch "abstract / non abstract class" New topic
Author

abstract / non abstract class

frantisek nejedly
Ranch Hand

Joined: Sep 09, 2008
Posts: 42
There is an abstract class and I only remove the keyword abstract.
Is the class functionality the same as before except for ability to be instantiated? Or is there anything more?
Thank you.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
Originally posted by frantisek nejedly:
There is an abstract class and I only remove the keyword abstract.
Is the class functionality the same as before except for ability to be instantiated? Or is there anything more?
Thank you.


Assuming there were no abstract methods in the class then the functionality will not have changed.
If there were abstract methods then you will need to implement these and by implementing them you are obviously changing the functionality.


Joanne
chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

If there are no abstract methods in the class, then you will be able to instantiate the Class.

If the class contains even one abstract method then the class needs to be marked as abstract otherwise it wont compile.


Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
frantisek nejedly
Ranch Hand

Joined: Sep 09, 2008
Posts: 42
Yes, I know this. Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract / non abstract class
 
Similar Threads
ABSTRACT
A question about container!
usage of a class
A mock question
HttpServlet class