N
N
NkDev2020-03-13 13:05:01
OOP
NkDev, 2020-03-13 13:05:01

What is the difference between the concepts in C#: class, object, instance?

Started learning c#.
In php, everything was clear: a class is a template, and objects are concrete instances of a class. Those. object and instance there denoted the same thing.
In #, as I understand it, the concepts of an object and an instance are distinguished. The question is, what are the differences? How is it in the official documentation and Richter?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DanielMcRon, 2020-03-13
@NkDev

An object is an instance of a class.
A class is a description of an object

R
Roman, 2020-03-13
@yarosroman

In php, these concepts are also different.

A
Anton, 2020-03-15
@Lampochkagori

https://www.youtube.com/watch?v=x0udrpe_gZE&t=6s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question