aspose file tools
The moose likes Beginning Java and the fly likes abstract / non abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 3011
    
    9
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: abstract / non abstract class
 
Similar Threads
A mock question
ABSTRACT
usage of a class
HttpServlet class
A question about container!