0

Records in programming

I was wondering if record data structures exist in high level programming languages, just learned about them in computing class today even though I've been coding and programming since 2015 haha, such as C++, Java and C#. And if so how to declare one (preferably in those 3 programming languages I just mentioned)

28th Oct 2020, 9:43 AM
Aidan Docherty
Aidan Docherty - avatar
3 Answers
+ 2
A record will be standard probably in Java 16 (03/2021) how to usage it: https://www.baeldung.com/java-record-keyword
28th Oct 2020, 9:51 PM
zemiak
+ 1
Nope, I got trained via sololearn and just doing some odd things here and there. Never came across records until just in class. I do know about structured types and serialization as well, just never came across records being mentioned was all. Many thanks though, it's much appreciated 👍. Well just to make sure I am talking about the right thing here I'll post what the notes say: "If you want to hold related data of different types it is practical to use a record type". It's quite possible this is all just theory i've never came across before
28th Oct 2020, 10:41 AM
Aidan Docherty
Aidan Docherty - avatar
+ 1
Many thanks for the clearing up, I think this shows I should study the theory more and go all over it again with a fine lens
28th Oct 2020, 2:24 PM
Aidan Docherty
Aidan Docherty - avatar