Passive data structure: Difference between revisions

Content deleted Content added
m In Java: fix spelling
Line 10:
 
==In Java==
In [[Java (programming language)|Java]], some developers consider that the PDS concept corresponds to a class with public data members and no methods (Java Code Conventions 10.1),<ref name=Oracle>{{cite web|url=http://www.oracle.com/technetwork/java/codeconventions-137265.html#177 |accessdate=6 December 2016 |title=Java Code Conventions 10.1 |publisher=Oracle}}</ref> i.e., a [[data transfer object]].<ref>{{cite web|url=http://www.oracle.com/technetwork/java/codeconventions-137265.html#177 |title=Java Language Data Structures |accessdate=6 December 2016 |publisher=Sun/Oracle Code Conventions |date=April 20, 1999}}</ref> Others would also include [[Plain Oldold Java Objectobject]]s (POJOs), a class that has methods but only getters and setters, with no logic, and [[Java BeansJavaBeans]] to fall under the PDS concept if they do not use event handling and do not implement added methods beyond getters and setters.{{Citation needed|date=February 2010}} However, POJOs and Java Beans have [[Encapsulationencapsulation (computer programming)|encapsulation]], and so violate the fundamental definition of PDS.
 
==In other languages==