<s>
In	O
computer	B-General_Concept
science	I-General_Concept
and	O
object-oriented	B-Language
programming	I-Language
,	O
a	O
passive	B-Language
data	I-Language
structure	I-Language
(	O
PDS	O
,	O
also	O
termed	O
a	O
plain	B-Language
old	I-Language
data	I-Language
structure	I-Language
,	O
or	O
plain	B-Language
old	I-Language
data	I-Language
,	O
POD	O
)	O
is	O
a	O
term	O
for	O
a	O
record	O
,	O
to	O
contrast	O
with	O
objects	O
.	O
</s>
<s>
It	O
is	O
a	O
data	B-General_Concept
structure	I-General_Concept
that	O
is	O
represented	O
only	O
as	O
passive	O
collections	O
of	O
field	B-Application
values	O
(	O
instance	B-Application
variables	I-Application
)	O
,	O
without	O
using	O
object-oriented	B-Language
features	O
.	O
</s>
<s>
Passive	B-Language
data	I-Language
structures	I-Language
are	O
appropriate	O
when	O
there	O
is	O
a	O
part	O
of	O
a	O
system	O
where	O
it	O
should	O
be	O
clearly	O
indicated	O
that	O
the	O
detailed	O
logic	O
for	O
data	O
manipulation	O
and	O
integrity	O
are	O
elsewhere	O
.	O
</s>
<s>
For	O
example	O
,	O
PDS	O
would	O
be	O
convenient	O
for	O
representing	O
the	O
field	B-Application
values	O
of	O
objects	O
that	O
are	O
being	O
constructed	O
from	O
external	O
data	O
,	O
in	O
a	O
part	O
of	O
the	O
system	O
where	O
the	O
semantic	O
checks	O
and	O
interpretations	O
needed	O
for	O
valid	O
objects	O
are	O
not	O
applied	O
yet	O
.	O
</s>
<s>
A	O
PDS	O
type	O
in	O
C++	B-Language
,	O
or	O
Plain	B-Language
Old	I-Language
C++	I-Language
Object	I-Language
,	O
is	O
defined	O
as	O
either	O
a	O
scalar	O
type	O
or	O
a	O
PDS	O
class	O
.	O
</s>
<s>
A	O
PDS	O
class	O
has	O
no	O
user-defined	O
copy	O
assignment	O
operator	O
,	O
no	O
user-defined	O
destructor	O
,	O
and	O
no	O
non-static	O
data	B-Application
members	I-Application
that	O
are	O
not	O
themselves	O
PDS	O
.	O
</s>
<s>
Moreover	O
,	O
a	O
PDS	O
class	O
must	O
be	O
an	O
aggregate	O
,	O
meaning	O
it	O
has	O
no	O
user-declared	O
constructors	O
,	O
no	O
private	O
nor	O
protected	O
non-static	O
data	O
,	O
no	O
virtual	O
base	O
classes	O
and	O
no	O
virtual	B-Application
functions	I-Application
.	O
</s>
<s>
The	O
standard	O
includes	O
statements	O
about	O
how	O
PDS	O
must	O
behave	O
in	O
C++	B-Language
.	O
</s>
<s>
The	O
type_traits	O
library	O
in	O
the	O
C++	B-Language
Standard	I-Language
Library	I-Language
provides	O
a	O
template	O
named	O
is_pod	O
that	O
can	O
be	O
used	O
to	O
determine	O
whether	O
a	O
given	O
type	O
is	O
a	O
POD	O
.	O
</s>
<s>
In	O
C++20	O
the	O
notion	O
of	O
“	O
plain	B-Language
old	I-Language
data	I-Language
”	O
(	O
POD	O
)	O
and	O
by	O
that	O
is_pod	O
is	O
deprecated	O
and	O
replaced	O
with	O
the	O
concept	O
of	O
“	O
trivial	O
”	O
and	O
“	O
standard-layout	O
”	O
types	O
.	O
</s>
<s>
In	O
some	O
contexts	O
,	O
C++	B-Language
allows	O
only	O
PDS	O
types	O
to	O
be	O
used	O
.	O
</s>
<s>
For	O
example	O
,	O
a	O
union	O
in	O
C++98	O
cannot	O
contain	O
a	O
class	O
that	O
has	O
virtual	B-Application
functions	I-Application
or	O
nontrivial	O
constructors	O
or	O
destructors	O
.	O
</s>
<s>
PDS	O
types	O
can	O
also	O
be	O
used	O
for	O
interfacing	O
with	O
C	B-Language
,	O
which	O
supports	O
only	O
PDS	O
.	O
</s>
<s>
In	O
Java	B-Language
,	O
some	O
developers	O
consider	O
that	O
the	O
PDS	O
concept	O
corresponds	O
to	O
a	O
class	O
with	O
public	O
data	B-Application
members	I-Application
and	O
no	O
methods	O
(	O
Java	B-Language
Code	I-Language
Conventions	O
10.1	O
)	O
,	O
i.e.	O
,	O
a	O
data	B-Operating_System
transfer	I-Operating_System
object	I-Operating_System
.	O
</s>
<s>
Others	O
would	O
also	O
include	O
Plain	B-Language
old	I-Language
Java	I-Language
objects	I-Language
(	O
POJOs	O
)	O
,	O
a	O
class	O
that	O
has	O
methods	O
but	O
only	O
getters	O
and	O
setters	O
,	O
with	O
no	O
logic	O
,	O
and	O
JavaBeans	O
to	O
fall	O
under	O
the	O
PDS	O
concept	O
if	O
they	O
do	O
not	O
use	O
event	O
handling	O
and	O
do	O
not	O
implement	O
added	O
methods	O
beyond	O
getters	O
and	O
setters	O
.	O
</s>
<s>
However	O
,	O
POJOs	O
and	O
Java	B-Language
Beans	O
have	O
encapsulation	B-Application
,	O
and	O
so	O
violate	O
the	O
fundamental	O
definition	O
of	O
PDS	O
.	O
</s>
<s>
Records	O
(	O
introduced	O
in	O
Java	B-Language
16	O
,	O
in	O
2021	O
)	O
are	O
shallowly	O
immutable	O
carriers	O
of	O
data	O
without	O
encapsulation	B-Application
,	O
and	O
therefore	O
they	O
can	O
also	O
be	O
considered	O
PDS	O
.	O
</s>
<s>
In	O
PHP	B-Application
,	O
associative	O
arrays	O
and	O
stdClass	O
objects	O
can	O
be	O
considered	O
PDS	O
.	O
</s>
<s>
Other	O
structured	O
data	O
representations	O
such	O
as	O
XML	B-Protocol
or	O
JSON	B-General_Concept
can	O
also	O
be	O
used	O
as	O
a	O
PDS	O
if	O
no	O
significant	O
semantic	O
restrictions	O
are	O
used	O
.	O
</s>
<s>
In	O
Python	B-Language
,	O
dataclass	O
module	O
provides	O
dataclasses	O
-	O
often	O
used	O
as	O
behaviourless	O
containers	O
for	O
holding	O
data	O
,	O
with	O
options	O
for	O
data	O
validation	O
.	O
</s>
