Skip to main content

Questions tagged [object]

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.

object
1 vote
1 answer
34 views

How do I conditionally deep merge objects in JavaScript with multiple keys

The project I am working on is a trilingual dictionary. I have a database of words, and each word contains (among other things) an array of spelling variations and an array of objects representing ...
micahlt's user avatar
  • 425
0 votes
2 answers
43 views

Filter array of object with another array of objects boolean property

i have dropdown values at frontend as follows. You can see the first 2 values Mar and May are checked based off the checked property in dropdownValues below. let dropdownValues = [ {key: 'Mar', ...
Aren Trot's user avatar
  • 463
1 vote
2 answers
98 views

Is Overriding Methods From An Object Possible? C++

I was wondering if it is possible to override a method of an object ex: class Object{ public: void Foo(){ //do something } }; Object* obj = new Object(); obj->Foo() { //do something else } ...
light drop's user avatar
0 votes
1 answer
32 views

Change and/or delete instances of a class by referencing them through variables [duplicate]

Sorry if this is a stupid question, but I think I'm missing some crucial knowledge on how classes work in Python. Say, for example, that I'm re-inventing the wheel by implementing a list data ...
Adalwolf's user avatar
-1 votes
0 answers
23 views

Pygame, object balloon won't move [duplicate]

I've written a program following a PDF which my teacher sent us to do over the summer (it is not a homework). However as I follow this through I encountered a problem where the balloons won't move. ( ...
GhostaNero's user avatar
0 votes
0 answers
9 views

Invoking a window getting selected text

I wanted to display a 'simpler' text to help supplement kids reading exercise. As an example - as an example the text may read : Johnny went to school and he surreptitiously ate his lunch early. I ...
Bryan Shanks's user avatar
0 votes
3 answers
46 views

Removing an array object from main Object

I am trying to remove an array object based on value of array object property by using JSONATA transform function but the array object is not getting removed. If pmtDtls.lnAprvlStatus ='D', the object ...
ashok jha's user avatar
0 votes
1 answer
20 views

Does python 3.12 allows to append items from the list to tuple, I am trying this but getting error TYPEERROR: 'tuple' object is not callable

Please find the below code, once I execute this code I am getting 'tuple' object is not callable error please give the solution, thanks in advance. `mytuple = ("apple", "banana", &...
Lakshmi's user avatar
0 votes
2 answers
68 views

How do you Define and Call an object

Class Salesman has 3 attributes: salesman, sales_id, and years_worked. I would like to define bonus, using the years_worked. I want to add "$" for each year worked. How do I def bonus()? ...
User1234's user avatar
0 votes
2 answers
75 views

Need advice returning an instance of object using a pointer - bad_alloc at memory location?

I'm having some trouble trying to return an instance from a list of instances from a function. I have a set where I store instances of my Student class. I'm trying to return an instance from the "...
f99's user avatar
  • 17
0 votes
0 answers
19 views

Matplotlib pyplot y-axis ticks label to get more distant

matplotlib, object api in use to plot, plot type step Low cardinality of y-axis variable. Two ticks that level too close to each other - their labels are visually joined. Attaching the screenshot ...
Lilkp2's user avatar
  • 1
0 votes
0 answers
13 views

How can I call a method within the same object literal where it's defined in JavaScript? [duplicate]

const objTest = { testFunctionToDoubleAValue: (testParameter) => testParameter * 2, testValue: 1, testValueDoubled: testFunctionToDoubleAValue(1), } I tried to access a function inside the ...
CandleLearner's user avatar
0 votes
0 answers
9 views

Trying to create a new dive utilizing the keys of each object in an array of objects in local storage

I'm having trouble creating a new div for each object in the local storage array of objects. I have a form that's input values are added as objects into local storage, which holds an array of all the ...
user25669532's user avatar
-1 votes
0 answers
44 views

Functions involving other classes? [duplicate]

Currently I have two classes, the student and roster class. The roster class has an array of pointers that point towards the memory addresses of student class objects. Each student class has multiple ...
droid's user avatar
  • 31
-3 votes
1 answer
34 views

HTML e JS use Simple Collapsible and include text form file togheter

i need idea for my problem. I would like to use two combined functions in simple HTML. Use the COLLAPSIBLE buttons to make a text imported from a TXT file appear... this is my code but it doesn't hide ...
user2964048's user avatar

15 30 50 per page