Abstract data type vs data type vs data structure, in relation to object-oriented programming

I understand that the data structure is essentially a plan that contains all the information necessary to create the final product in accordance with its specification, and the data type is the physical implementation or implementation of this project (very similar to the difference between genotype and phenotype, from biology) .

When it comes to object-oriented oriented programming, it would be correct to say that an abstract class or interface is a data structure because it contains a set of values ​​and declared behaviors and that a class that implements this abstract class or interface is a data type because is this a concrete manifestation of this behavior?

If so, what about the difference between abstract data types (ADTs) and data types ? Are they really great or is the ADT just colloquially shortened to "data type"?

I ask about this because it seemed to me that these terms are often used interchangeably in a conversation, and this made me wonder if my understanding was wrong.

+4
source share
3 answers

I am new to the answer to stackoverflow and to such a data structure and discussion of data types, but hopefully this helps. These links did a lot for me in addition to what I was taught:

" " " " ?

* * *

http://cs.lmu.edu/~ray/notes/dtds/

, "", , , . ++. . , , node, node, node - . , . , . , , LinkedStack - , . , , . , int - , , .

, , , .

. , 42, 42 int ? int, int ( )? ? ? ? .

- , . , , , . , int - , , , , int ints. , - ints, . , , . - . , , .

, - , . , , . , . , - , , node node, . , ( / ) , .

, , :

, ?

https://social.msdn.microsoft.com/Forums/vstudio/en-US/270bebdb-9032-4fc1-97c6-bc017d7e0a45/when-to-use-single-linked-list-and-when-to-use-double-linked-list?forum=csharpgeneral

, , .

+4

  • . . mathematical model.

  • , .

  • , .

  • , .

  • , .

  • - , struture

TL;DR

> >

+4

. , , - , , . : 00100110 "38" (- ).

, . .

- .

-source: , google....

0

Source: https://habr.com/ru/post/1546723/


All Articles