encapsulation
Private Methods Over Public Methods
I was examining the StringTokenizer.java class and there were a few questions that came to mind. I noticed that the public methods which are to be used by other classes invoked some private method w[详细]
2023-04-13 03:59 分类:问答C# List of lists (2D matrix)
Im trying to implement a 2D array class using List of Lists. Can someone please help me to implement a get function similar to T this[int x, int y] function below to get all the elements in a column g[详细]
2023-04-12 15:55 分类:问答Java: Automatic way to encapsulate a library
I have the following scenario: I am using a very big exte开发者_如何学JAVArnal library in my Eclipse RCPapplication for a specific purpose.[详细]
2023-04-11 04:01 分类:问答Android, how can i encapsulate an AsyncTask class with network connections
Im starting with android (3 days ago) and i cant get the solution for what i want. So, i read a lot of threads here about asyncTask and now im sure i got confused.[详细]
2023-04-08 19:17 分类:问答How to get more encapsulation in C#?
I have recently learned C# fully, approximately. However, in C++ I could implement a better encapsulation when passing objects to methods, with const modifier. But in C#, objects can be modified throu[详细]
2023-04-07 13:09 分类:问答Hiding mutators, clarification needed
Suppose you have a class Dog, 开发者_StackOverflowthat has public class Dog { private String name; private double age;[详细]
2023-04-06 18:02 分类:问答Classes, encapsulation and user input [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-04-05 23:27 分类:问答Using Moose to code objects in a polymorphic situation where clients expect to access $object->{private_variable} data
I know that while the internal representation of a Moose object is (rightfully) left undefined. However, in almost all cases, it\'s going to be a basic blessed hashref. In a situation where a new obje[详细]
2023-04-05 16:27 分类:问答Python design guidance:
I\'m a very experienced developer - done a lot of heavy duty work with Delphi, C# and C++ for years. I have always adhered very closely to the guidelines for structured programming, OOP, loosely coupl[详细]
2023-04-04 23:33 分类:问答Issue with using get keyword in C# relating to inheritance
So I am having some issues with this. I am kinda new to C#. All my attributes are private and I am using the tradi开发者_JS百科tional get and set. It is an abstract class. But in the child class when[详细]
2023-04-04 19:21 分类:问答