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
0
votes
0 answers

Got problem calling method from inherited aggregation

the following are my code. When I execute 'System.out.println(e.getBrowserInfo().getBrowser( )); ' in the last line of code in Webstat class. The result gives me 8 results of "Chrome". This is wrong as it is suppose to give answer as "Chrome" ,…
loh
  • 1
  • 1
0
votes
1 answer

Get Values from inherited when base type is given back

Situation: IdentityUser is inherited by AppUser. AppUser has a few properties more.((int)ExClientNr and (string)Category) On top UserManager userManager request var user = await userManager.FindByEmailAsync(Input.Email); When I…
Dinand
  • 330
  • 2
  • 17
0
votes
0 answers

Access Inherited Protected variable outside package in Java

I have 3 classes, class Person in package A, class Employee extends Person in package B, and class Test in package A: In Person.java: package A; public class Person { protected String name; ... } In Employee.java: package B; import…
0
votes
1 answer

Delphi: inherited Create gives Access violation

I made an application that opens several other Forms for handling tasks. All forms work fine, except one. I am using the same code for all forms. It's like: FormTypeA := TFormTypeA.Create(Application); In the Create constructor I added some code to…
cvz
  • 139
  • 1
  • 7
0
votes
3 answers

How to get a inherited object member from a list with lambda expression

My question is how do I have to make an object cast in a lambda expression from a List so that I can directly access the member AddressByte from class CyclicData? Please do not describe any solutions without lambda, that I have already…
0
votes
0 answers

Label controls don't show up in panel on inherited form (all other controls do)

I realize there have been similar questions asked here before, but after scouring the site I've not found anything that addresses the specific issue I'm experiencing. I'm using C# in VS 2017. I have a base form and am trying to create/use an…
Theo.Doc
  • 1
  • 1
0
votes
0 answers

Delphi constructor how to (inherit a Parent.Parent create) or (call a Parent.Parent.Create)

Hi im trying to call a parent's parent.create effectively bypassing the parent.create here is an example unit InheritedTest; interface type IMyExample = interface ['{4B281573-99CC-4B9D-9895-F6BCD0E26F26}'] procedure…
Dangas56
  • 849
  • 1
  • 8
  • 32
0
votes
1 answer

I don't understand output of My program, Explain please

I have 4 class and 1 interface In interface have 2 abstract methods (myMethod(int k) and getV()) public interface MyInterface { public abstract void myMethod(int k); public abstract int getV(); } In MySuperClass that implements MyInterface public…
micky
  • 3
  • 2
0
votes
1 answer

Django Inherited Model: "Cannot resolve keyword 'keyword' into field." (Django 2.1.1)

guys. Same Context Processor, new problem (linked to this question). I have the following model to check for promotions on a website: class PagePromotion(LinkedPromotion): """ A promotion embedded on a particular page. """ page_url =…
CataldiR
  • 11
  • 1
  • 4
0
votes
0 answers

Delphi XE6 E2008 on Inherited

I encountered some error for which i just can't find a proper hint on the net. Hopefully one of you can point me to the right direction. Simple Problem: I've got a class inheriting from TObject. I've got a constructor named Create and i want to call…
kaymcray
  • 19
  • 5
0
votes
1 answer

C++ Template and derived class, no match for function

I try to compile the following code : #include "Fraction.cpp" #include "Pile.cpp" #include "Plus.cpp" #include using namespace std; Nombre calcul(Element* tab [], int nbElement){ Pile pile = Pile(30); for(int i = 0…
StuYYY
  • 97
  • 2
  • 12
0
votes
1 answer

connect base class signal to inherited class slot

I have a question - how to connect base class signal to inherited class slot. I`ve got a code like this class A: public QObject { Q_OBJECT public: A(){} void EmitSignal() { emit(Asignal()); } signals: void Asignal();…
0
votes
1 answer

Django: outsource model properties with inheritance to a more general model

I have noticed, that I need a generalized model based on a specified model, following example should show what I mean: before: class TextResult(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, default=1) text =…
0
votes
2 answers

Cannot access Parent LinkedList java

I have parent class CompositeDiscount. It has a linkedlist to store some dicount. It has two child class BestForVersityStrategy and BestForStudentStrategy. I populate parent linked list in another class Registration. When I try to iterate LL from UI…
K.M.S
  • 91
  • 2
  • 8
0
votes
1 answer

Inherited .Net Class ToString Not Overriding

I have created an inherited class "StorageMedium" from a base I called "DataTypes". StorageMedium has two properties, Name() and Capacity(). In the DataTypes object, which all other objects in the class library have been inherited from, I have…