Welcome to Dream.In.Code
Become a Java Expert!

Join 149,615 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,855 people online right now. Registration is fast and FREE... Join Now!




abstraction and Encapsulation

 
Reply to this topicStart new topic

abstraction and Encapsulation, abstraction and Encapsulation

Manasi Ram
23 Aug, 2007 - 02:28 AM
Post #1

New D.I.C Head
*

Joined: 23 Aug, 2007
Posts: 1


My Contributions
1. A hen can run, lay egg and peck.

2. Each hen has muscles. More muscles means more power to peck & run.

3. However such a hen will lay lesser eggs.

Write a simple app to simulate this. Understand abstraction and
encapsulation as applied to this example


I am able to create the class and methods for it. However, for the 2nd and 3rd point I am unable to define the code.[font=Arial][size=3]

This post has been edited by Manasi Ram: 23 Aug, 2007 - 02:31 AM
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: Abstraction And Encapsulation
23 Aug, 2007 - 02:35 AM
Post #2

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,010



Thanked: 7 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
Hi Manasi Ram, please show us your code you have so far, so that some of us can help. And welcome to </dream.in.code>

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:32AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month