object oriented programming examples in java-Jboss Google Code In
Compile time polymorphism is the process of overloading a method. It allows a class to have different methods with the same names.
Run time polymorphism is the process of overriding a method. It allows a differnt class to override a method of its parent class with a method of the same name.
Encapsulation allows a class to hide variables so only methods in the same class can access them. This allows you to have variables in different classes with the same name.
Inheritance allows a subclass to inherit and use methods from its parent or super class. This allows the reuse of the same method in different classes.
Abstraction allows only certain relvant details to be shown to the user. This allows for a reduction in complexity but may not allow the user to see certain parts that may be crucial to understanding a program.