An object is any entity that can be manipulated by commands in a programming language. An object can be a value, a variable, a function, or a complex data-structure. In object-oriented programming, an object refers to an instance of a class.
2
votes
2answers
30 views
How to get the object name from within the class?
I've got a simple class from which I create two objects. I now want to print the name of the object from within the class. So something like this:
class Example:
def printSelf(self):
...
0
votes
0answers
8 views
Play sound after object Augmented Reality display
How does that sound came out after the object was detected.? (FlarToolkit)
display code > Download Code
2
votes
0answers
11 views
How to fix Error: Trying to get property of non-object
I am getting the error: Trying to get property of non-object. I'm all out of ideas as to why I am getting this error. The error is for this line: $results = $quotes->return; Any help is ...
0
votes
1answer
20 views
How to ng-repeat into html table with multiple levels of json?
I have an object of social media stats. I'm trying to ng-repeat them into a table. Here's my plunker.
HTML:
<table>
<tr ng-repeat="(metric, metricData) in data">
...
0
votes
1answer
13 views
OpenGL - Import 3ds object and make it solid?
Basically, what I'm trying to do is, import the 3ds object(done) and make it look "solid" so that I can apply lightning to it
This is part of what I got:
this is where I load the object and put it ...
-1
votes
0answers
33 views
PHP static variables and objects
I have a function that is called once for initiation, and then later as a callback. I need some of the values that were defined in the initial setup to be accessed in the callback.
I am unsure of ...
1
vote
2answers
31 views
How to change the constructor of an object?
I am diving deeper into Javascript, and learning how constructor methods work.
In the code below, I would expect that I would be able to overwrite the constructor of an object, so that newly created ...
0
votes
2answers
40 views
what is use of referring object to an interface? [duplicate]
i have searched a lot but did not get exact answer for this Question hope i will get it from here.
what is exactly the use of referring object of a class to an interface instead of referring to the ...
0
votes
0answers
10 views
How can I link a static library to a cpp file?
I have a static library called X.a and a cpp file called Y.cpp. Y.cpp conatins the main function and uses the functions in X.a. How can I compile Y.cpp such that X.a is included and finally make a Z.a ...
-1
votes
3answers
34 views
Find an element in stdClass object array?
I need to find an element from an array. I know about in_array() method, but it does not work for this kind of array:
Array
(
[0] => stdClass Object
(
[id] => 7
)
[1] => ...
0
votes
1answer
29 views
Passing an Object to swing GUI
I have 5-6 GUIs(seperate classes) one opens another according to their functionality, every GUI takes an object inside, I pass the final Object in a flight booking system like this to my GUI when a ...
-3
votes
1answer
42 views
what is better…list of objects or map? [closed]
I have pairs of two values - they could be translated to a map where you put key, value or to a list where you put objects that have the fields that in 'map' world are key and value.
Which is better ...
0
votes
0answers
45 views
ObjectiveC - Extend already initialized object
Surely dumb question but I did a class called GLManagedObject that extends NSManagedObject.
I have a NSManagedObject already initialized that I'd like to extend with my custom methods:
...
0
votes
1answer
12 views
type error : object is not a function Backbone.js
I get this uncaught type error of object is not a function when trying to write a collection view. I have used the same code while doing the App but as am re doing the app with require.js, I get this ...
0
votes
1answer
21 views
Getting the wrapper object in java
I am instantiating a LinkTableColumn object.
When instantiating - I am overriding the method, which needs my instance of LinkTableColumn.
When writing the following - compiler returns: "No enclosing ...