|
-
November 26th, 2004, 07:40 AM
#1
disabling parent's functions when inheriting ..?
Hi,
I have a very annoying JAvA exercise to do in which one class needs to be an "exdends"-child of a parent. The child should NOT have functions avaliable though that the parent does have. As in .. the parent has a function called pair() .. this function should not be callable for the child. I can modify the parent as well as the child however much I like .. both have to be non-abstract classes though, and if possible, the inheritance should be direct.
As far as I can tell, I can't really tell the child that it doesn't have functions its parent has. am I missing a loophole?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|