i knew theoretical knowledge about encapsulation and abstraction but i want one good example which contains both encapsulation & abstraction concept clearly..
Abstraction used to describe how a particular system/library etc.. represents essential features of the same without going in to the complexity of the entire system/library. ADT (Abstract Data Types) are a good example of this.
Hmm... Java API has many examples. I can give you one example, *java.util.AbstractList* . it has an encapsulation too, search *private* key word in that .
Don't get me started about those stupid light bulbs.