Member Avatar

please tell me in how many ways OBJECT ORIENTED PROGRAMMING is different from procedural programming in JAVA

Member Avatar
+0 forum 6
Member Avatar

Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder if it's normal practice to instead use the properties of the class and use [B]$this[/B] to retrieve those values in the different methods instead of passing them as parameters? What is best and how should I do? code example. This: [CODE] class example { function __construct($param){ $result = $this->foo($param); $result2 …

Member Avatar
+0 forum 2
Member Avatar

I have recently started learning Object oriented programming and design. I had made a small program using the procedural design to move a block after selecting it in XNA. I then tried to make the same program with an Object centered Design, but I am not able to make it work. The block is to change color when clicked but isn't in the OO version and I am not able to figure out why :(( . I have uploaded both the solutions, I want the OOP version to works as the procedural one is working. i.e. Change color when clicked …

Member Avatar
+0 forum 2

The End.