python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is using get_object_vars() or json_encode() very bad for encapsulation?
Solution found in the comment: use the JsonSerializable interface
I am looking for the most proper way to create an array from an object properties.
The object properties would would have to store the...
Vincent
Votes: 0
Answers: 0
Program without and with data hiding in java
I have studied data hiding in java theoretically but don't know what is happening inside. Every tutorial, states that unauthorized persons cant access the data of others.
Can anyone please give an exa...
SMValiAli
Votes: 0
Answers: 1
Invoke overridden virtual methods of a derived class without exposing them
I would like to write a function f which invokes two overridden virtual methods, op_1 and op_2, of a derived class in a particular order, without exposing those methods beyond f and the methods' conta...
Manningham
Votes: 0
Answers: 1
Encapsulation in the Java Model Class
Let assume that we develop a simple blog website backend and the app have three or more POJO classes like Post, User, Category.
All class have the same fields such as id, createdDate, updateDate.
As j...
swim
Votes: 0
Answers: 2