Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where we're using abstraction and encapsulation in java? explain with example?

 
lavanyacbe kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where we're using abstraction and encapsulation in java? explain with example?

Ple explain me purpose of both topics with examples?
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what all have you learned on these topics so far
 
lavanyacbe kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks 4 your reply manish..

i knew theoretical knowledge about encapsulation and abstraction but i want one good example which contains both encapsulation & abstraction concept clearly..
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SearchFirst
These concepts have been discussed lots of times in the past.

Beginner question. Moving to the beginner forum.
 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jan Cumps
Bartender
Posts: 2599
12
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, lavanyacbe

Please use real words. use Please and for, not Ple and 4.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic