Solved

Enumeration/ private/public/protected /friends

Posted on 2006-07-10
1
343 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
ID: 17075826
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Name space syntax error 12 57
ASP.NET gridview select textbox on focus 2 34
ASP.NET MVC 2 31
ASP.NET MVC -Add authentication 2 21
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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