Questions tagged [inherited]

This tag refers to the classes or objects that a particular class inherits from.

Use this tag for questions related to what is inherited by a class.

99 questions
7
votes
1 answer

How to call correctly base class constructor from inherited class in Delphi Phrism?

I have two classes - base class and inherited class as follows. Base Class: TAlarm = class(System.Object) private: protected: public: constructor (tag:TTagname); end; inherited class: TAlarmMsg = class(TAlarm) public constructor…
ThN
  • 3,235
  • 3
  • 57
  • 115
4
votes
1 answer

BindingList where T is interface that implements other interface

I am stuck with BindingList where T is an interface that extends A interface. WHen i use this bindingList in bindings, only properties from T are visible, while properties from inherited A interface are not. Why is it happening? It looks like a .net…
4
votes
1 answer

Cannot Display Inherited Form in Form Designer When Base Form Defined in an Assembly for Visual Studio 2022

MyForm is inherited from Form. I am able to inherit MyForm in VS2022 application. However, if MyForm is inside a library and my VS2022 application tries to create a form that is inherited from MyForm then I got an error: "The designer could not be…
4
votes
2 answers

how to use inherited variable in c++

I have a question to inherited variables. Parts of my sourcecode: class Piston{ //abstract class ... //virtual functions }; class RectangularPiston: public Piston { ... //non virtual…
Chris
  • 63
  • 4
3
votes
1 answer

Is it possible to change the DescriptionAttribute value of an inherited DependencyProperty in a derived class?

If I create a class that extends UserControl and want to set a default value for a DependencyProperty that is declared in UserControl, say FontSize, I can add a static constructor like the following: static MyUserControl() { …
Sheridan
  • 68,826
  • 24
  • 143
  • 183
3
votes
1 answer

Postgres: show inherited fields

What query should I implement to get columns that are inherited? Having read this comprehensive post didn't find the solution.
Vadim Samokhin
  • 3,378
  • 4
  • 40
  • 68
3
votes
0 answers

How to use designated initializers in structs inherited from another struct in C++20?

int main() { struct TStruct1 { int Field1; int Field2; }; struct TStruct2 : TStruct1 { int Tag; }; TStruct2 t2{ { .Field1 = 1, .Field2 = 2, }, .Tag = 3 …
vladon
  • 8,158
  • 2
  • 47
  • 91
3
votes
2 answers

identity not working with inherited table

I'm using PostgreSQL 11 latest version, having problems with an identity as PK that inherits a table. assume you have simple parent table like: CREATE TABLE test7 ( id_t7 int GENERATED always AS IDENTITY PRIMARY KEY, folio int…
glicuado
  • 1,483
  • 2
  • 10
  • 11
3
votes
1 answer

Inheritable attributes in ruby classes

Greets to all! I want to describe each kind of product by a class: # Base product class class BaseProduct prop :name, :price # Common properties for all inheritable products end class Cellphone < BaseProduct prop :imei # Concrete property for…
rbnoob
  • 99
  • 1
  • 8
3
votes
2 answers

Thread Pooling and InheritedThreadLocal

I have seen the below question.The answer was to use the semaphores instead.This didnot answer one of the other problems stated in the question which I am facing. Using InheritableThreadLocal with ThreadPoolExecutor -- or -- a ThreadPoolExecutor…
crackerplace
  • 5,305
  • 8
  • 34
  • 42
3
votes
1 answer

Force customized system class usage

I created class MyToolStrip:ToolStrip{}. My project already has about 60 toolstrip instances. Is there a way (except signature find/replace) to: Force all my created forms to use MyToolStrip instead ToolStrip? Force future MyToolStrip usage…
John Smith
  • 185
  • 1
  • 8
3
votes
2 answers

Is inherited keyword called automatically in Delphi?

According to this page http://www.delphibasics.co.uk/RTL.asp?Name=Inherited It says "It is called at the start of a constructor, and at the end of a desctructor. It is not mandatory, but recommended as good practice. " Did I not understand correctly…
justyy
  • 5,831
  • 4
  • 40
  • 73
3
votes
2 answers

Explain Inherited Roles

The inherited roles are the roles which appear as shown in the image: So my questions are: What are inherited roles? Please explain. What are the use-cases in which roles would appear in this section for a User? Thanks in advance.
Prakash K
  • 11,669
  • 6
  • 51
  • 109
2
votes
2 answers

Queryset in an inherited Django Template

I'm new to Django and Web programming in general. Have googled but could not find the answer I need. Here's the case: I have a site, where every page in which the user is logged has certain navigation Menu. That's why they extend a template called…
lembon
  • 125
  • 7
2
votes
1 answer

Serialization of derived objects with json.net

Serialization of an object inherited from Dictionary does not include field and properties in the resulting json string. Note: This is a simplified example. Yes, I know one should not derive from the Dictionary type. Serializing an…
IHMS
  • 71
  • 1
  • 2
1
2 3 4 5 6 7