suicehockey44
asked on
C# newbie question
Hi. My question is that if I have an Data Access Layer that writes to a DB, then a Rules layer that inherits the DAL, then a presentation layer that inherits the Rules Layer, how can I keep the methods in the DAL hidden from the presentation layer??
ASKER
I see. But doesn't the Sealed class eliminated the possibility of any inheritance??? I want the Rules layer to inherit the DAL. BUT, I do not want the other class, which inherits the Rules Layer to have access to the methods in the DAL...perhaps I am not following sealed closely enough.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok sorry I should've been more clear. Thank you and I will try using an interface.
I've looked for a short example on the Internet for you:
http://stackoverflow.com/questions/106383/c-can-publicly-inherited-methods-be-hidden-e-g-made-private-to-derived-class
And you've been clear enough... it's just me ending 11 hours of work in front of the computer and visual studio.
(Lucky me, this day is over :-) )
http://stackoverflow.com/questions/106383/c-can-publicly-inherited-methods-be-hidden-e-g-made-private-to-derived-class
And you've been clear enough... it's just me ending 11 hours of work in front of the computer and visual studio.
(Lucky me, this day is over :-) )
http://msdn.microsoft.com/en-us/library/88c54tsw(VS.71).aspx