In our previous lessons, we defined pointer variables and we also saw how to operate upon pointer variable, how to work with pointer variables in c or c++ program but we did not really talk about the real use cases of pointer variables, in what scenarios we may want to use pointer variables So in…
Tag: c++
C# Tutorial – 28 – Events
Events enable an object to notify other objects when something of interest occurs. The object that raises the event is called the publisher and the objects that handle the event are called subscribers. To demonstrate the use of events let’s first create the publisher. This will be a class that inherits from ArrayList, but this…
Pointers as function returns in C/C++
In this lesson we will talk about pointers as return type for functions. Pointer is just another data type. It’s just that a pointer stores the address of another data type. So it is quite possible for a function to return pointer. But we must understand the use cases in which we may want to…
[C#] Delegates and Events (E01: delegates)
Hi everyone, in this two part series we’re going to be looking delegates and events. So actually creating a delegate is very straightforward. We simply write the keyword ‘delegate’, and then, as though we were creating a method, we specify a return type – so say void – the name of the delegate – I’ll…
[C#] Delegates and Events (E02: events)
Hi everyone, in this episode we’re going to look at a way of using delegates that is conceptually very different from how we used them last episode. Let’s consider a simple scenario where we have a game with a Player class, an Achievements class, and a UserInterface class. The Player class has a “Die” method,…
Native Client Event: December 8, 2011
IAN ELLISON TAYLOR: Hello everyone. Thank you for coming. I want to thank everyone who made it down to Mountain View. It looks like we got a pretty packed house tonight. That’s pretty good. Hopefully, it wasn’t just for the beer. And of course, we have an audience on video conference from Asia. I’m assuming…
Arrays as function arguments
in this lesson we will be talking about one more scenario in which the concept of arrays and pointers go together and this scenario is when you pass an array as function argument let us see a code example where we pass array as function argument and try to analyze it i will write a…