File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes OOPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "OOPS" Watch "OOPS" New topic


Ajay Selvam

Joined: Sep 16, 2007
Posts: 6
I am entirely new to java platform.
I need a help.I know the principles of OOPS.
Abstraction,Encapsulation,inheritance and polymorphism.
But,i need a example code for these principles to understand.
anyone please send me a simple code to understand the concepts.
Please anyone help me.

Thank you.
Ravikanth kolli
Ranch Hand

Joined: Feb 10, 2008
Posts: 179

The best way is to work it out rather than asking for examples. As you mention that you know what each of the terms mean, it should not be very difficult to get writing a little code.
If you need any explanations in that please do post your work and we are more than happy to help you.

Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
I would recommend getting a book which talks about Data structures in Java. That's how I got the 'Aha' of OOPS (via C++ actually).
I agree. Here's the link:
subject: OOPS
jQuery in Action, 3rd edition