473,378 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Learning C# (2)

1. When to derive a class from IDisposable?

2. Does the statement below indicate that "MyDisposable" is an abstract
class that needs its children classes to implement methods and all objects
of children classes will be "Disposable"?

public abstract class MyDisposable : IDisposable

3. What does this mean by adding "abstract object" in front of a member
method?

protected abstract object EatFood()
4.Often seeing "A first chance exception of type..."

What's the meaning of first chance exception?

5. If see a signed number like -31345712, show it be converted to hex number
so that its meaning can be interpreted by searching MSDN, or use the signed
number directly?

Thanks for your help!

Oct 28 '06 #1
4 1098
1. IDisposable is an interface rather than a base class, so the
terminology is to "implement" IDisposable, rather than "derive" from
it. You'd implement IDisposable if your class needed to explicitly
release unmanaged resources. Managed resources are handled
automatically by the .NET garbage collector.

2. Yes

3. An abstract method is a method of a base class that provides no
implementation and must be overriden by a derived class.

4. Explained here: http://support.microsoft.com/kb/105675

5. You might put the number in quotes if your search engine uses "-" to
exclude search terms, as Google does.

vicmann wrote:
1. When to derive a class from IDisposable?

2. Does the statement below indicate that "MyDisposable" is an abstract
class that needs its children classes to implement methods and all objects
of children classes will be "Disposable"?

public abstract class MyDisposable : IDisposable

3. What does this mean by adding "abstract object" in front of a member
method?

protected abstract object EatFood()
4.Often seeing "A first chance exception of type..."

What's the meaning of first chance exception?

5. If see a signed number like -31345712, show it be converted to hex number
so that its meaning can be interpreted by searching MSDN, or use the signed
number directly?

Thanks for your help!
Oct 28 '06 #2
Vicmann,

Whats the deal here? Are you really just picking this up or do you have an
assignment to do?

If it's the former, given the number and type of questions you have I would
suggest that you need to get a good book. I strongly recommend [1].

If it's the latter, do your own homework.

[1]
http://www.oreilly.com/catalog/csharpess2/

"vicmann" <vi*****@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
1. When to derive a class from IDisposable?

2. Does the statement below indicate that "MyDisposable" is an abstract
class that needs its children classes to implement methods and all objects
of children classes will be "Disposable"?

public abstract class MyDisposable : IDisposable

3. What does this mean by adding "abstract object" in front of a member
method?

protected abstract object EatFood()
4.Often seeing "A first chance exception of type..."

What's the meaning of first chance exception?

5. If see a signed number like -31345712, show it be converted to hex
number
so that its meaning can be interpreted by searching MSDN, or use the
signed
number directly?

Thanks for your help!

Oct 28 '06 #3
CuriousGeorge wrote:
I strongly recommend [1].
http://www.oreilly.com/catalog/csharpess2/
This edition dates from 2002 according to O'Reilly's site. There were a
lot of changes in the language and in the .NET framework since its
release. Is it really still worth buying it?

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Oct 29 '06 #4
totally and completely.

"Michel Leunen" <no****@noreply.bewrote in message
news:eF****************@TK2MSFTNGP02.phx.gbl...
CuriousGeorge wrote:
>I strongly recommend [1].
http://www.oreilly.com/catalog/csharpess2/

This edition dates from 2002 according to O'Reilly's site. There were a
lot of changes in the language and in the .NET framework since its
release. Is it really still worth buying it?

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------

Oct 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ron Stephens | last post by:
The newly rechristened Python Learning Foundation is a web site dedicated to the assistance of people learning the Python programming language. Features include: 1. Daily lists of new and recent...
29
by: Jhon smith | last post by:
Hi,all,I was just wondering if I am likly to have any problems trying to learn C from older books,I have some from the late 80`s,mid/late 90`s. I am using Dev-C++ on the pc windows platform,But I...
4
by: Christian Blackburn | last post by:
Hi Gang, I saw this for sale online: Microsoft Visual Basic.NET Deluxe Learning Edition Version 2003. I'm wondering is the CD that's bundled with the learning edition just a digitized version of...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
7
by: Max | last post by:
On monday I start a semester course in Python (the alternative was Java). I was looking through the course outline and noticed the following: 1) UserDict is used. This is deprecated, right? 2)...
36
by: utab | last post by:
Dear, I have experince in C( numerical projects, like engineering problems, scientific applications) I have the basic notion of C++ also, I have read Accelerated C++ until Chapter 7, however it...
2
by: bokiteam | last post by:
Hi All, Here is my idea to save learning time - Personal learning book. What we really need is somebody really familiar our learning experience, and then takes the example to teach us. Save...
78
by: arnuld | last post by:
hai all, i am standing on a "crossroad to C++". I am here in front of you as i have a problem. i will be brief. Please do not think: "arnuld is sick", i am really struggling & doing hard-work to...
0
by: LK~ICT | last post by:
Sri Lanka rural e-learning project seeks corporate support Dec 04, 2007 (LBO) - A Sri Lankan e-learning initiative for rural students is seeking corporate sector support to expand and cover 400...
16
by: John Salerno | last post by:
Just something that crosses my mind every time I delve into "Learning Python" each night. Does anyone see any value in learning Python when you don't need to for school, work, or any other reason?...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.