Solved

Enumeration/ private/public/protected /friends

Posted on 2006-07-10
1
340 Views
Last Modified: 2008-03-17
I would like to know the usage of some words in VB.net.
example:

Public shared function
Private shared function

Public protected function
Private protected function

I have seen the usage of  Friends somewhere
I also have seen enumeration.

can someone explain to me how they use them?

thanks
0
Comment
Question by:jskfan
1 Comment
 
LVL 1

Accepted Solution

by:
sridon earned 300 total points
Comment Utility
1) Public shared function and Private Shared function

When you declare a function as shared then you don't have to make an instance of the class to use the function. for ex.

there is a class c1 and it has a shared function F1 then you can use this function without making an instance of it.

2)Public protected function & Private protected function

There is nothing called as Public protected or Private Protected. There  are 5 access modifiers which you can use in .net.For further details goto this link

http://builder.com.com/5100-6373-1027680.html

3)  Friends

The  friend functions are also illustrated in the above link. just remeber that Friend functions are called Internal in c#.

4)  enumeration.

hey are generally written to make your code more readable. ou can find more information on Enumerations in the follwing 2 links
http://www.thescarms.com/dotnet/enumeration.asp
or
http://aspalliance.com/292

Hope ths is helpfull

Regards
Sridon
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now