DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 637 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

1
kicks
submitted by crpietschmann crpietschmann 10 months, 12 days ago

pietschsoft.com — Sometimes when creating base objects you want to create methods that are overridable by object that inherit the base object, but keep the methods from being public. However, the compiler throws an exceptions when you try to define a method as "Private Abstract".

tags: , , , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
the very purpose of having a method being declared abstract means that, the derived class must implement that method. So if the derivd class cannot see the method, how can it implement that meathod.
Henceforth an abstract meathod cannot be declared private but you can use protected access specifier instead.

Thanks,
Anand
posted by anand 10 months, 12 days ago
Correct. And, in fact, you CAN have protected abstract methods.
posted by yesthatmcgurk yesthatmcgurk 10 months, 12 days ago
Yes, you can, and if you read my post, you would see that I stated that "Protected Abstract" is what to use in this case.
posted by crpietschmann crpietschmann 10 months, 12 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads by The Lounge