Groups
Groups
Sign in
Groups
Groups
BYU 142 Summer 2011
Conversations
About
Send feedback
Help
Implements and Extends
2 views
Skip to first unread message
Nicholas Levi
unread,
Aug 5, 2011, 9:25:58 PM
8/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BYU 142 Summer 2011
1. --Create the following interface:
---Investment (1 pt)
3. --Create three classes as extensions of Investment:
---Stock (1 pt)
---Rental (1 pt)
---Business (1 pt)
7.--Implement a profit method for each class:
---Stock (1 pt)
---Rental (1 pt)
---Business (1 pt)
How does it says Create the following interface (Line 1) Investment
and later tell that I need to extends Investment (Line 3)?
Line 7 I'm supposing that the interface Investment has a
method public int profit();
So why does it say to create interface and extends that?
William Ingold
unread,
Aug 5, 2011, 9:34:01 PM
8/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to byu-142-s...@googlegroups.com
Last I heard you could choose either to make Investment an interface
or an abstract class...
Reply all
Reply to author
Forward
0 new messages