---
title: "C# hjälp om OOP"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/64646-c-hjälp-om-oop"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "icaaq"
published: "2003-01-13T09:44:21.000Z"
updated: "2003-01-13T09:51:58.000Z"
replies: 2
views: 443
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/64646-c-hjälp-om-oop"
---

# C# hjälp om OOP

## #1 — icaaq, 2003-01-13T09:44Z

Hjärnsläpp jag har denna

```
[red]
namespace Icaaq
{
	/// <summary>
	/// Summary description for icaaq.
	/// </summary>
	public class Fetchnews
	{
		public Fetchnews()
		{
			
		}
		[b]???[/b] Stream _fetchstream(string URL)
		{
			HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(URL);
			WebResponse WebRes = WebReq.GetResponse();
			return WebRes.GetResponseStream();
		}
	}
}
[/red]
```

Vad ska jag skriva vid **???** för att jag ska kunna komma åt \_fetchstream i min public Fetchnews class?

mvh icaaq

Permalänk: https://www.webforum.nu/p/64646

## #2 — Viktor, 2003-01-13T09:50Z

public/private?

```
		public Stream _fetchstream(string URL)
		{
			HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(URL);
			WebResponse WebRes = WebReq.GetResponse();
			return WebRes.GetResponseStream();
		}
```

/Viktor

Permalänk: https://www.webforum.nu/p/911086

## #3 — icaaq, 2003-01-13T09:51Z

Så klart att det ska vara private...... som jag sa Hjärnsläpp :r

Permalänk: https://www.webforum.nu/p/911087

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/64646-c-hjälp-om-oop
