?
Solved

Enumeration/ private/public/protected /friends

Posted on 2006-07-10
1
Medium Priority
?
350 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 1200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 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