Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

I want to implement a custom Tedit box and override the OnChange handler (rather than set the OnChange property). I want to do it that way so I can preserve the inherited OnChange code I found this ...
Clay Christian's user avatar
Best practices
1 vote
4 replies
117 views

If my record implements an interface, with a field accessor implicitly implementing a method, it should be an instance of what the @Override annotation is meant to cover. interface I { int f(); } ...
ice1000's user avatar
  • 6,619
Advice
0 votes
9 replies
127 views

Explain please why the output is "Base" ? Isn't getClassName method inherited? class Base {     public String className = "Base";     public String getClassName() {         ...
J.J. Beam's user avatar
  • 3,171
0 votes
0 answers
50 views

Problem Statement I'm subclassing Gtk4 container widgets so I can add functionality to various property changes. For this question I'll use set_orientation from Gtk.Box and the Gtk.Orientable ...
Ardemus's user avatar
  • 61
0 votes
2 answers
196 views

I'm trying to override the View property in a derived class from Listview: public class CustListview : System.Windows.Forms.ListView { private CustView mView = new CustView(); public enum ...
DennisV's user avatar
  • 11
1 vote
2 answers
176 views

I recently ran into something weird while working with inheritance in Python. I had a base class method that was synchronous, but in the subclass, I accidentally overrode it as an async method (...
Rishabh Chauhan's user avatar
-1 votes
1 answer
108 views

I'm a bit confused about how method overriding works in Python. Let's say I have a base class with a method, and I override that method in a subclass. When I call the method from the subclass, the ...
Rishabh Chauhan's user avatar
1 vote
0 answers
41 views

The example.xsd file contains this fragment: <xs:override schemaLocation="../base/definitions.xsd"> <xs:simpleType name="MessageTypeEnum"> <xs:annotation&...
jcjustesen's user avatar
3 votes
0 answers
99 views

Assume there is a base class in a Java library which cannot be modified public class BaseClass { public Something function(int... args){ ... } } Typically, this would be overridden in Scala by ...
Ian Bertolacci's user avatar
0 votes
3 answers
115 views

I am trying to overload a method from a base class in an inherited class, which is used indirectly through another method in the base class. I have tried a bunch of combinations of using, override and ...
Renze's user avatar
  • 42
1 vote
0 answers
44 views

We've been plagued for years by the GetFileOpenName and GetFileSaveName functions that open Windows dialog boxes. When the user closes them, the application's current directory has changed. Afterward, ...
Kurt Triebe's user avatar
1 vote
0 answers
31 views

I have a convention plugin for set of my libs in distributed project. I want provide some common config functions like myConvention { setupJUnit() copyManifestToResources() dropGuava() } ...
Николай Костин's user avatar
0 votes
1 answer
124 views

I'm attempting to create an undetectable method of overriding the Error object in JavaScript without triggering standard detection mechanisms. My goal is to modify the Error prototype or constructor ...
a.gulcan's user avatar
  • 307
1 vote
0 answers
29 views

The sample code is simple, as follows: class Node { id?: string; private _parent?: Node; get parent(): Node | undefined { return this._parent; } set parent(value: Node | ...
Billy Chen's user avatar
3 votes
0 answers
98 views

This is my parent class: public abstract class Measurement { @Schema(description = "The value", example = "1") public Double amount; @Schema(description ...
Essej's user avatar
  • 891
1 vote
2 answers
126 views

Background information below the question. In Python 3, I can define a class with an abstract method and implement it in a derived class using a more specialized signature. I know this works, but like ...
Maarten Bamelis's user avatar
0 votes
2 answers
105 views

I have two classes, non-generic BindingFilter and generic BindingFilter<T>: public class BindingFilter { public object Value { get; set; } public string Member { get; set; } ...
dgo's user avatar
  • 3,987
0 votes
1 answer
47 views

I am converting a class to JSON and XML. The Json conversion for the class cities is done and is shown below. I am trying to do the same with an XML output, but see that these options for field custom ...
sinDizzy's user avatar
  • 1,384
0 votes
1 answer
56 views

My aim is to implement a class that inherits from pd.Series class and acts as a container object. This object will hold varied objects as its elements in the form of container = Container( a = 12, ...
Amin.A's user avatar
  • 406
2 votes
2 answers
363 views

I'm trying to customize Material chips using the Angular Material theming system. I expected this approach to work: @include mat.chips-theme(...); @include mat.chips-overrides(...); However, this ...
Jakub Krasnan's user avatar
1 vote
1 answer
114 views

Below is a minimal example that reproduces the issue. #include <iostream> class A { public: int _numA; A(int x) { _numA = x; }; virtual int run(A&...
James's user avatar
  • 87
0 votes
0 answers
71 views

I have this code, the parent class has an abstract bool Filter(EntityComponent entity) but in this class, I prefer implementing bool Filter(BaseComponent entity) because others are calling the latter ...
Luke Vo's user avatar
  • 21.6k
1 vote
2 answers
101 views

Given this code: class Foo { data = { x: 1 }; } class Bar extends Foo { override data = { ...super.data, y: 1 }; } TypeScript complains on the super.data part: Class field 'data' defined by the ...
user avatar
2 votes
1 answer
78 views

The base class and its derived class have different destructor names, so how is overriding possible? Could you explain what happens when a destructor is declared as a virtual function?
Code_JP's user avatar
  • 51
2 votes
1 answer
109 views

In Stata, how can I force the graph to stop displaying after a certain point on the x-axis? For instance, say that I have: sysuse auto2, clear gen mid = (price + weight)/2 gen n = _n twoway /// ...
bill999's user avatar
  • 2,580
0 votes
0 answers
104 views

Some context: I’m working on a registration-form-extender module to extend Keycloak's functionality. The goal is to terminate all sessions and log the user out from all devices whenever they update ...
Dora Boutsini's user avatar
0 votes
1 answer
46 views

Assuming the classes have the following structure for the purpose of recycling useful code: public abstract class BaseWriter {...} public class CommonWriter : BaseWriter {...} public class ...
Mateus Lima Silveira's user avatar
0 votes
3 answers
59 views

I'm a beginner coder, and I'm currently creating a website as a personal project. I was going smoothly, but then suddenly an unexpected output happened and I stopped at my tracks. I have just added ...
Shubhadeep Roy's user avatar
0 votes
0 answers
76 views

I'm trying to write a plugin that extends Foo Gallery so I can display the tags list as a dropdown menu. Originally, I approached it like this: add_action('foogallery_loaded_template_after', '...
Jacq Horizon's user avatar
2 votes
1 answer
64 views

I am attempting to override a generic method, however Typescript complains that the types are incompatible. I feel like I must be missing something as I would have thought that the types would be the ...
Interminable's user avatar
  • 1,420
-1 votes
1 answer
47 views

This sample use 2 forms 1 BaseForm (TFORM) 2 TF1 (BaseForm) inherited BaseForm has the procedure Procedure whenDeleteRec(dataset:tdataset) virtual;Abstract TF1 Procedure whenDeletedRec(dataset:...
MedHome's user avatar
0 votes
1 answer
122 views

The below content is from .runsettings file. <TestRunParameters> <Parameter name="TestMode" value="" /> <Parameter name="RemoteServerUrl" value=&...
Coder's user avatar
  • 5
-3 votes
2 answers
140 views

We have a large codebase in Java. At various times we experience an OutOfMemory. It is not easy to override the throwable everywhere with a custom myThrowable. I would like to override the standard ...
user1607416's user avatar
2 votes
0 answers
93 views

I am working on a custom addon in Odoo and I need to override a specific line in a core JavaScript file. The file I am referring to is located in the Odoo web client (start.js file) and contains the ...
Hakim00's user avatar
  • 21
0 votes
0 answers
36 views

I am overriding settings for the entire test class like this: @mock_aws @override_settings( AWS_CLOUDFRONT_DOMAIN="fake_domain", AWS_CLOUDFRONT_KEY="fake_key", ...
Labeeb's user avatar
  • 117
0 votes
1 answer
257 views

Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: C:\Tools\apache-maven-3.9.9-bin Java version: 1.8.0_431, vendor: Oracle Corporation, runtime: C:\Tools\Java\jre Default locale:...
TStevens's user avatar
1 vote
0 answers
80 views

I work for a company, and the service we use for e-commerce has asked me to give them a css file with updates for the template they have created for clients. In the section of the website, there is a ...
AdmiralVance's user avatar
0 votes
0 answers
52 views

I have a package.json: "dependencies": { ..., "tomato": "^1.0.9", "zone.js": "^0.13.3" }, "devDependencies": { ...
Pontchik's user avatar
2 votes
2 answers
238 views

I want to override the postMessage() function in all Worker created after the override. I am doing this in a browser extension from a content script before page is loaded. I have tried to simply ...
Andreas Toresäter's user avatar
4 votes
1 answer
117 views

According to boxing on structs when calling ToString(), calling an unoverridden method on a C# struct causes it to be boxed. This is ultimately because of how the constrained callvirt IL instruction ...
palapapa's user avatar
  • 1,051
0 votes
0 answers
88 views

I’m working with a Rails application that uses the attr_encrypted gem to handle encryption for sensitive data. Previously, we only stored the last 4 digits of the SSN. We’re migrating to store the ...
Nedim Ramic's user avatar
0 votes
1 answer
50 views

I'm creating an environment for integration testing of Nest.js app. To mock external dependencies, I'm overriding the HttpService provider with my custom class, to be precise, with a facade class ...
Stanisław Kurzyp's user avatar
0 votes
2 answers
96 views

Why does this code: /* gcc test.c -o test -lSDL2 -Wall -Wextra */ #include <SDL2/SDL.h> void close() { printf("HERE\n"); SDL_Quit(); } int main() { SDL_Init(...
user25068231's user avatar
0 votes
1 answer
69 views

My drop function fires and everything seems correct but the hoverClass and activeClass does not change the div background. I've tried this under Chrome, Firefox, and Edge. It has to be something I am ...
hassan's user avatar
  • 3
0 votes
1 answer
766 views

I am using Angular 16 with Angular Material UI components in my project, and I want to apply custom styles like rounded corners, double-bordered inputs, custom fonts, etc. I have achieved this by ...
Najeem Fasil's user avatar
0 votes
1 answer
118 views

I am using the Microsoft Entity Framework. Consider the following example code: public class person { public int Id { get; set;} public string Name { get; set;} public string DisplayName{ ...
William Holmes's user avatar
2 votes
1 answer
117 views

I'm trying to understand the behavior of method overriding, constructor calls, and variable shadowing in Java inheritance. I have the following code class Base { int id = 1000; //Line n1 Base(...
happy's user avatar
  • 515
0 votes
1 answer
85 views

I want to override an @objc method in my derived class. The method declaration is the exact same as in the superclass: class Test: DGCharts.LineChartView { @objc private func ...
cheersmate's user avatar
  • 2,639
-1 votes
2 answers
180 views

I have a base class B, from which I will derive class D. The only thing different in D is that I override a single method. Do I have to override B's constructor in D, since all it will do is call B's ...
TSG's user avatar
  • 4,746
1 vote
0 answers
41 views

I am using Symfony 4 with JMoseCommandScheduler, it works fine. However, I would like to make the list of cron commands bound to a specific timezone. Editing the bundle source code, it can be achieve ...
Cedric's user avatar
  • 41

1
2 3 4 5
164