Skip to main content
-3 votes
0 answers
31 views

php inheritance abstract class property [closed]

I have a question about inheritance in php 8.3. I have an abstract class with a property, variable or what ever it must be called. I then try to set this property/variable from a function in the ...
Mads Peter Jensen's user avatar
2 votes
2 answers
45 views

In dart/flutter, what's the best way for a wrapper to have the same default values for (some of) its parameters as its child?

Mainly facing this in wrapper widgets that pass through parameters to the widget that they wrap. The child declares default values, but for the wrapper to also have the same default values I end up ...
Lojcs's user avatar
  • 67
-1 votes
1 answer
54 views

Python updating a subclass attribute [closed]

I'm learning to work with classes in Python and I can't understand why my subclass attribute is not being overwritten. If I do char.info.name = "SOME" then everything works and the name ...
Terrorka's user avatar
-1 votes
0 answers
49 views

Runtime polymorphism design, with derived class objects as members of another class [closed]

I'd like to provide users of my C++ (17) library with abstract base classes, for example, class Base { public: virtual void mandatory_method() = 0; }; where users are encouraged to create their ...
josh_eime's user avatar
  • 133
2 votes
0 answers
66 views

Get list of local variables , global variables and call parameters used by function in QT creator C++ project [closed]

I am using QT creator as ide for qt C++ project. I want to know all about inbuilt tools provided by qt creator that can help me in getting the following details: global variables used by a function ...
Sumeet's user avatar
  • 8,332
2 votes
2 answers
75 views

How is a Kotlin getter/setter tied to correct attribute within a class? What makes the connection?

From the Kotlin-documentation: class Rectangle(val width: Int, val height: Int) { val area: Int get() = this.width * this.height } What I don't understand: How does the "get" ...
cluster1's user avatar
  • 5,858
-5 votes
0 answers
80 views

How are initialization and assignment fundamentally different? [duplicate]

take the following classes for example: class Test { public: int a=1;// no error }; class Test { public: int a; a=1; // error }; Here the second case gives error. After a few ...
m112120's user avatar
  • 19
16 votes
1 answer
603 views

Why does R behave differently for auto-printed objects?

I have encountered two instances where it seems that R treats obj and print(obj) differently. I would like to know more about the nature of this difference. First instance I can run trace("print....
Quasimodo's user avatar
  • 498
0 votes
1 answer
100 views

Does the compiler generate the move operations (not default) in case of a default destructor? [duplicate]

A relatively same question is asked before, but the code snippet is different, which I believe makes this question unique. Does the compiler generate the move operations in the following scenario? ...
Ali Sedighi's user avatar
0 votes
2 answers
89 views

Is it possible to create an equals override for an untyped class and it's typed counterpart?

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,963
0 votes
2 answers
57 views

Python Multiprocessing Pool Queue Works in Functional Code but not in OOP

I am learning multiprocessing in Python and am trying to incorporate a worker pool for managing downloads. I have deduced my queue issue down to something with OOP, but I don't know what it is. The ...
Tom Smith's user avatar
1 vote
1 answer
69 views

How to properly reuse heavy calculations performed in the Parent class within the Child class?

Suppose I have a Parent class in Java: public class Parent { protected int value; public Parent() { value = performHeavyCalculations(); } private int performHeavyCalculations(...
i1ravenov's user avatar
0 votes
1 answer
80 views

How to dispose IDisposable child when disposing parent [duplicate]

I have an IDisposable object, a Winform, with another IDisposable object as a property. Would it be a good idea to add a reference to the parent object when instantiating the child object and then ...
Jon Taimla's user avatar
-5 votes
0 answers
63 views

Extern causing hang issue on Linux [duplicate]

I have a project that I am developing and observing a crash when program exits. util.cxx #include <iostream> #include <map> #include <string> namespace A { namespace B { ...
Aditya Dhotarkar's user avatar
2 votes
1 answer
49 views

Exiting Fullscreen of video leads to status bar hidden issue i am using chewie controller and video controller

I am using chewie and video controller in my app , on the video Fullscreen exit the status bar hides when i exit from full screen mode for full app the status bar issue happens then. My code snippet:...
Khushboo Agarwal's user avatar

15 30 50 per page
1
2 3 4 5
4156