Questions tagged [extend]

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

1544 questions
0
votes
1 answer

extend a jQuery Object to my own Object

My problem is the following code! I want extend a jQuery Object to my XjQuery object and i seems to be work. but in the each function where i will find the object the function myfunc is not declared whats wrong here? cheers and sorry for my poor…
helmi
  • 61
  • 7
-1
votes
1 answer

How to retrieve information from one class to another

I have the following code to retrieve information from a text box to another within the same class btnAddItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String tabno =…
FatmaTurk
  • 83
  • 3
  • 3
  • 9
-1
votes
1 answer

extend abstract class issue - javascript

I need to extend an abstract class in javascript. I've buy the Javascript The Definitive Guide - O'Reilly there are some examples of OOP in js. I've tried to execute one of the example to extends an abstract class, but i receive the…
franco
  • 133
  • 2
  • 10
-1
votes
3 answers

Find 4 values in window size 6 that satisfy certain criteria and extend until 4 consecutive values do not satisfy . Python

if you have a list of values: values=['130','90','150','123','133','120','160','180','45','67','55','34','130','120'] and wanted to scan through with a window size of 6 and if 4 out of the 6 were >= 100 then keep scanning until there were 4 in a…
O.rka
  • 29,847
  • 68
  • 194
  • 309
-1
votes
1 answer

Questioning the order in which the code is executed

So I stumbled across this piece of code (Java - Constructor does not explicitly invoke a superclass constructor, Java does not insert one either)... public class App { public static void main(String[] args){ new C(); new C(1.0); …
dog bytes
  • 23
  • 4
-1
votes
1 answer

why does my for loop keep on removing the append element

so I am trying to create a list that have different list as it element the for loop bellow will extend an element to the bag then append it to the list bag and finally remove the extended element to repeat the cyclec the bag contains these elements…
phuc
  • 9
  • 1
-1
votes
1 answer

How to upgrade parent class with one function named with the classname to 8.1 without editing every child class that calls the function?

class tableBlock { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters =…
teaman
  • 1
  • 2
-1
votes
1 answer

Understanding extend and method overwriting

This is a follow-up question from the previous: Why is the parent prototype method still executable after overriding?. As we see, the literal object {metadata, aaa, init} was initialized by the extend function as a 2nd import variable, so this…
sisi
  • 7
  • 3
-1
votes
2 answers

joining a list of months to a disordered list of number of days

we have two lists, one for months and the other for numbers of days, the last one is disordered, for exemple : t1 = [28,31,31,30,31,30,31,31,31,30,30,31] t2 = ['Jan','Feb','March','Avr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] and we want…
-1
votes
1 answer

Extracting the text starting with a character and ends with another into new column in python

I am trying to extract an ID from a link given in a column. ID started after "tt" and ends before "/". Trying to extract it into new column. Input dataset: Movie Link movie 1 http://www.imdb.com/title/tt0114709/?ref_=fn_tt_tt_1| output…
-1
votes
2 answers

I'm getting the error "TypeError: Cannot read property 'extend' of undefined" when trying to import chartjs-plugin-datalabels

The error text: "TypeError: Cannot read property 'extend' of undefined (anonymous function) ./node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.js:587" print of the error i'm getting That's the component where i'm trying to…
L. Ribeiro
  • 23
  • 1
  • 5
-1
votes
2 answers

Extend controller acceleratorservices in Hybris

I have a problem when I try to extends the SilentOrderPostMockController. In my storefront extension I create a new controller that extends the other one which belongs to acceleratorservices extension. I add requiered extension in…
-1
votes
2 answers

In python, why can't I use the extend function inside the print function?

If I write my code like this, friends = ["Kafi", "Saif", "Shaheer", "Azmain", "Labid", "Faiz", "Azmain"] lucky_numbers = [114, 151, 172, 7, 1, 63, 14, 543] friends.extend(lucky_numbers) print(friends) then my code runs perfectly. But if I use…
tryingtobeastoic
  • 175
  • 1
  • 14
-1
votes
2 answers

Java Sub Classing: Overriding and Making New Methods

Resources which teach Java seem to have conflicting answers on whether it's possible to both override a parent class's method and also create a new method from within a subclass at the same time. When I try the following: class ABC{ …
Stanley
  • 3
  • 1
-1
votes
1 answer

How to copy dictionary object value from one key to another?

I have to make a dictionary with input, which may contain "key -> value1, value2" or "key -> key". The keys are always strings, and the values are always integers, separated by a comma and a space. If given a key and values, I must store the…
1 2 3
99
100