Solved

Enumeration/ private/public/protected /friends

Posted on 2006-07-10
1
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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