Showing posts with label class. Show all posts
Showing posts with label class. Show all posts

Monday, June 4, 2012

Structure Vs Class in C#


When you create an instance of a class with the new operator, memory gets allocated on the heap. When you create an instance of a struct with the new operator where does the memory get allocated, on the heap or on the stack ?

Monday, May 7, 2012

Does initiating a large class on a page slow it down?


I am in the process of writing a class that will probably end up being around 3000 lines of code.

Monday, February 27, 2012

Objective C create new class which is an image?


Sorry I'm new to Objective C and OOP, and I'm trying to understand how to use classes. I have searched everywhere but can't find a clear answer.

Wednesday, January 18, 2012

Multiple object selection with jQuery




I have a pretty basic jQuery question and forgive me if it has already been answered. Basically I attempt to have a link slide down a div. This is fairly simple however I require multiple links sliding down their respective divs. I understand I can just name the links and divs unique classes and solve the problem that way, however this naturally also requires a duplication of the jQuery code for each link-div and i have a lot. I therefore need a general script. A simplified version of my situation is as follows:

Friday, January 13, 2012

Calling a Class function without using $this->function_name() — PHP --


So I have this class:




class A{
public function do_a(){ return 'a_done';};

public function do_b(){ return 'b_done';};
}