class (25,550)


java - How would you access Object properties from within an object method?

java - How would you access Object properties from within an object method?

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, argument…


PHP Session Security

Locked.This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. What are some guidelines f…



c++ - Should I use nested classes in this case?

I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Th…


python - Class views in Django

Django view points to a function, which can be a problem if you want to change only a bit of functionality. Yes, I could have million keyword arguments and even more if statements in the function, but…


python - Adding a Method to an Existing Object Instance

I've read that it is possible to add a method to an existing object(i.e., not in the class definition) in Python. I understand that it's not always good to do so. But how might one do this?…


Limit size of Queue<T> in.NET?

I have a Queue<T> object that I have initialised to a capacity of 2, but obviously that is just the capacity and it keeps expanding as I add items. Is there already an object that automatically dequeu…


c# - Locating Text within image

I am currently working on a project and my goal is to locate text in an image. OCR'ing the text is not my intention as of yet. I want to basically obtain the bounds of text within an image. I am using…


.net - Do sealed classes really offer performance Benefits?

I have come across a lot of optimization tips which say that you should mark your classes as sealed to get extra performance benefits. I ran some tests to check the performance differential and found…


asp classic - How do I traverse a collection in classic ASP?

I want to be able to do: For Each thing In things End For CLASSIC ASP-NOT.NET!…


Reading a C/C++ data structure in C# from a byte array

What would be the best way to fill a C# struct from a byte[] array where the data was from a C/C++ struct? The C struct would look something like this(my C is very rusty): typedef OldStuff{CHAR Name[8…




example java how with method from object not function and