Hello,

On Jul 13, 1:19 am, Alex <[email protected]> wrote:
> Dear Programmer:
>  
> Home Page > Learning the Java Language > Interfaces and Inheritance  > 
> Abstract Methods and Classes
>  
>  
> "An abstract class is a class that is declared abstract—it may or may not 
> include abstract methods. Abstract classes cannot be instantiated, but they 
> can be subclassed. "
>  
> For anything to work the object has to be instantiated.  This means it goes 
> from the java file which is just basically text commands into a class file 
> which is the byte code the machine will use to make the object.
>  
> Not to sure how subclassing is getting us the abstract class to become an 
> object.

An abstract class can contain some method signatures without any
implementation and some
methods with an implementation.
So it doesn't make sense to instantiate and abstract class.

The subclass extends the abstract base class and implements the
missing method with the given
signature.
So the code from the abstract base class is available in the subclass,
when an instance of the
subclass is created.

HTH
Ewald


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to