Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL UDF or C# function Pin
Mycroft Holmes2-Oct-13 13:03
professionalMycroft Holmes2-Oct-13 13:03 
GeneralRe: SQL UDF or C# function Pin
eddieangel3-Oct-13 6:06
eddieangel3-Oct-13 6:06 
AnswerRe: SQL UDF or C# function Pin
Kornfeld Eliyahu Peter2-Oct-13 20:58
professionalKornfeld Eliyahu Peter2-Oct-13 20:58 
Questionclass and object Pin
Member 103106132-Oct-13 0:02
Member 103106132-Oct-13 0:02 
AnswerRe: class and object Pin
Chris Quinn2-Oct-13 0:07
Chris Quinn2-Oct-13 0:07 
AnswerRe: class and object PinPopular
Pete O'Hanlon2-Oct-13 0:09
mvePete O'Hanlon2-Oct-13 0:09 
AnswerRe: class and object Pin
Abhinav S2-Oct-13 0:20
Abhinav S2-Oct-13 0:20 
AnswerRe: class and object Pin
BillWoodruff2-Oct-13 6:16
professionalBillWoodruff2-Oct-13 6:16 
"Class," and "Object," as used in modern computer science, both can have a wide range of meanings.

Assuming your goal is to understand these concepts in .NET, and C#, I'd suggest you download the free e-book by Charles Petzold, ".NET Book Zero," here: [^], and read Chapter 13, "Classes, Structures, and Objects," and then read Chapters 14, 15.

Both "Class" and "Object" can be regarded as basic concepts in the knowledge domain of "Object Oriented Programming."

Both terms can be regarded as reflecting the idea of a discrete "entity," a unit of logic, a semantic abstraction which models a "thing," or, "process," in the "real world."

I think reading about the history of Object Oriented Programming will help you get a sense of what these terms mean, and how they are often used quite differently by different people: [^].

On a practical level in .NET, a Class is a block of code which can be seen as a template, or factory, for the manufacture of instances of the Class; some would say that the instances of a Class are Objects, but the Class is not quite the same thing. Some would say that a Class is an Object, and there have been (and are) computer languages in which everything you can think of is considered to be a Class.

In .NET a Class is a provider of a "bundle" of functionality: a constructor that supports parameters, an ability to inherit structure from other Classes and Interfaces, ability to inherit data in other Classes. But, there are "Static" Classes in .NET, which behave quite differently, and you should experiment with those to understand how they are different from "regular Classes."

Google CEO, Erich Schmidt: "I keep asking for a product called Serendipity. This product would have access to everything ever written or recorded, know everything the user ever worked on and saved to his or her personal hard drive, and know a whole lot about the user's tastes, friends and predilections." 2004, USA Today interview

Questiondatatable . help needed Pin
superselector1-Oct-13 18:56
superselector1-Oct-13 18:56 
AnswerRe: datatable . help needed Pin
Abhinav S1-Oct-13 21:09
Abhinav S1-Oct-13 21:09 
AnswerRe: datatable . help needed Pin
Andy_L_J1-Oct-13 22:20
Andy_L_J1-Oct-13 22:20 
QuestionExternal component has thrown an exception Pin
Member 102708251-Oct-13 18:13
Member 102708251-Oct-13 18:13 
AnswerRe: External component has thrown an exception Pin
Abhinav S1-Oct-13 20:44
Abhinav S1-Oct-13 20:44 
GeneralRe: External component has thrown an exception Pin
Member 102708252-Oct-13 0:38
Member 102708252-Oct-13 0:38 
GeneralRe: External component has thrown an exception Pin
Dave Kreskowiak2-Oct-13 4:37
mveDave Kreskowiak2-Oct-13 4:37 
GeneralRe: External component has thrown an exception Pin
ramonminarro11-Mar-22 3:10
ramonminarro11-Mar-22 3:10 
GeneralRe: External component has thrown an exception Pin
Dave Kreskowiak11-Mar-22 3:46
mveDave Kreskowiak11-Mar-22 3:46 
QuestionC# assignment please help Pin
bmulgrew11-Oct-13 18:07
professionalbmulgrew11-Oct-13 18:07 
AnswerRe: C# assignment please help Pin
Abhinav S1-Oct-13 21:10
Abhinav S1-Oct-13 21:10 
AnswerRe: C# assignment please help Pin
OriginalGriff1-Oct-13 21:25
mveOriginalGriff1-Oct-13 21:25 
GeneralDestructors Pin
N8tiv1-Oct-13 15:34
N8tiv1-Oct-13 15:34 
GeneralRe: Destructors Pin
Richard Andrew x641-Oct-13 16:29
professionalRichard Andrew x641-Oct-13 16:29 
GeneralRe: Destructors Pin
N8tiv1-Oct-13 16:31
N8tiv1-Oct-13 16:31 
GeneralRe: Destructors Pin
Richard Andrew x641-Oct-13 17:09
professionalRichard Andrew x641-Oct-13 17:09 
GeneralRe: Destructors Pin
Dave Kreskowiak1-Oct-13 17:05
mveDave Kreskowiak1-Oct-13 17:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.