Questions tagged [extending]
302 questions
1
vote
1 answer
SharePoint and FBA
I have been involved to develop a customized SharePoint 2010 application that uses a custom db for authentication.
Following many tutorials on the internet I was successfully able to implement FBA and the site is up and running for further content…

VXyahoo
- 11
- 1
1
vote
0 answers
Is it possible to inherit values from previous class included? node.js
I am doing some routing stuff and I am also using express so I'll need request and response later in controllers but I wanted to just inherit it from base controller instead of typing it in each new instance as arguments so here I've got code when I…

miloszowi
- 36
- 5
1
vote
1 answer
Angular2 Component factory for extended components
I'm trying to build a component based app, which most of the code should be reusable, also with some other stylesheets etc.
The goal is, that we have some core components, which we can use for other projects too. They should be extendable, so you…

faebuk
- 51
- 2
- 8
1
vote
2 answers
Extending a class with common functionality
I have three classes which basically do very similar things;
Store a record of an uploaded file.
Move and upload the file.
Set the status of the record to active or revoked.
One of the classes has an additional update method. Each class references…
user275074
1
vote
0 answers
How to change a function defined inside a js module
I'd like to know if it's possibile to "extend" the function named canvas_listeners that is defined inside this module and how to do it.
I'm very new to javascript, I'm sorry, I'm not even sure if this is a module at all :(
plugin.js
var XYZ =…

Ziqurrat
- 21
- 3
1
vote
1 answer
Angular extend vs $provide.decorator
I am confused. Could you clarify the difference among angular.extend() and $provide.decorator? Why and when use the second one? Is decorator doing something different than extend? I cannot find any answer after having performed a search...

Unknown developer
- 5,414
- 13
- 52
- 100
1
vote
3 answers
Controlling which instance of a class is created in a base project
I have a base project in which I cannot make changes, and so I made my own project extending the base.
So in the base there is, let's say
public class ClassA
{
public int NumberOfPeople = new BaseConstans().GetNumberOfPeople
}
And then…

Niklas
- 131
- 1
- 10
1
vote
2 answers
Initializing sub class fields
Consider a simple AClass:
class AClass {
private AContent content;
AClass(AContent content) {
this.content = content;
print();
}
protected void print() {
System.out.println("AClass content is "+…

c0der
- 18,467
- 6
- 33
- 65
1
vote
1 answer
Serialization of an object type enum contained in a serializable class
I am trying to serialize an object type enum declared in my serializable class. I have already red all topics here but I did not find an answer to my issue. I hope someone can help me here.
I actually am trying to serialize 2 objects type SType…

Vanessa Paradissio
- 51
- 1
- 4
1
vote
1 answer
Can I "Pimp my Library" on a parameterized trait with method returning this.type?
I want to extend my parameterized trait Field[T] with method returning this.type using Pimp my Library pattern. But I stuck with compiler errors. I tried some variants, but without success.
Am I doing it wrong? Or asking for the impossible?
Here is…

d.winmain
- 35
- 6
1
vote
1 answer
Getting rid of generics in Map
I use StringMap class as below to simplify Map declaration:
public interface StringMap extends Map {
interface Entry extends java.util.Map.Entry{
}
}
public class StringHashMap extends HashMap…

NickSoft
- 3,215
- 5
- 27
- 48
1
vote
0 answers
Deciding the pointing bucket of extendable hashing
I have an extendable hashing. need to insert values 23,31,5, 7,11,17, 2,3 . The hash function is h(x)=x mod 4. and the bucket size is 2.
I have a doubt how the pointing from each bucket need to be done when the directory size grows.
Is there a way…

user3789200
- 1,166
- 2
- 25
- 45
1
vote
1 answer
PHP classes: abstract, traits, extend, interface, singletons
I had a very long "Playlist" class; having functions that, among others, would handle the playlist cache, variables, and presets.
class Playlist{
var $cache;
var $variables;
var $preset;
function __construct(){
$this->cache…

gordie
- 1,637
- 3
- 21
- 41
1
vote
1 answer
Is it a good idea to extend a grails domain object?
I need similar object as grails domain object which does not need persisting. In order that I do not have to make changes in 2 places for any field changes, is it a good idea to extend the domain class so that I can get the benefits of single set of…

user2871715
- 21
- 2
1
vote
3 answers
How to properly override method keys() while extending dict (in python3)
EDIT: I added the class and some info, see the new post.
I have created a class that extends dict and set (more exactly, I extended collections.abc.MutableMapping and MutableSet). Now I want to properly override the method keys().
This class…

Marco Sulla
- 15,299
- 14
- 65
- 100