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
2
votes
1 answer

How do Grails' inherited/framework dependencies work when using Maven?

According to: http://grails.org/doc/latest/guide/3.%20Configuration.html#3.7.8 Maven Integration Grails' dependency resolution is disabled when using Maven and resolution instead occurs from the pom. That doesn't seem to apply to the…
Justin Miller
  • 757
  • 2
  • 8
  • 19
2
votes
1 answer

how can I fix this weak warning? "The field doesn’t override an inherited getter or setter."

It shows this: "The field doesn’t override an inherited getter or setter." And because of this issue I can't push my Code in Git as it fails on test and analyze. Any suggestions on how I can solve it? I shifted _startDate and _endDate out of…
lily
  • 63
  • 1
  • 8
2
votes
2 answers

C#: Func with a constructor of an inherited type

As we know you can point to a constructor as a Func like this: Func constructor = () => new MyObject(); var newObject = constructor(); But is there a way to make a constructor for an object you know inherits from MyObject, but you…
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130
2
votes
2 answers

TextBlock foreground being reset to inherited value after dynamic resource from merged dictionary is applied

EDIT: I was able to reproduce this in a very stripped-down version of the application. Here is a link to the .zip file http://www.mediafire.com/?cn918gi15uph1xe I have the module add the view to two different regions - the status bar region along…
Valerie
  • 1,205
  • 12
  • 16
2
votes
1 answer

TCollectionItem and destructor method in delphi

Hey, Could anyone tell me if the implementations of the Destructor in the following example are correct and the same? TTaskItem = class (TCollectionItem) private FTask: TTask; public constructor Create(Collection:…
Paul
  • 35
  • 3
2
votes
2 answers

(Java) How to call a overriden "inherited" method from the super class?

Let's go directly to the code: Father.java: public class Father { public void DoSmth(Father object) { // Do something else and print Print(object); } public void Print(Father object) { …
R. Thomes
  • 45
  • 5
2
votes
1 answer

Not sure with my approach in .net application

once again I'm here for help. I'm writing my first "real-like" application to practice what I learned and I am not sure about my approach. I'll try to explain it as best as my english allows me. Application consist of base abstract class and three…
Another Noob
  • 69
  • 1
  • 6
2
votes
2 answers

Getting list of Inherited types doesn't work for all types

I wrote a small method to list the inherited types but it doesn't works with a TreeNode for example: Assume this classes: class B { } class A : B { } class C :TreeNode { } And then: GetInheritedTypes(typeof(A));…
Jack
  • 16,276
  • 55
  • 159
  • 284
2
votes
2 answers

Override a data member in a C++ derived class

I have an doubt, with C++ redefinition. I assign memory in Derived class, so I need that this memory is reserved in Base class. So, I need considered that the attibute in the Base class is the same that the attribute in the Derived class, and I…
user3480234
  • 65
  • 1
  • 5
2
votes
3 answers

java set/get static inherited field on specified class

i'm in following situation: public class SuperClass { public static Object superClassStaticField; } public class ChildClass extends SuperClass { ... some methods and fields } I have a method which looks like this: ...modifiers... void…
Dankó Dávid
  • 302
  • 3
  • 17
2
votes
2 answers

WCF call fails when serialize base class which is a generic List<>

I have the following structure: public class DerivedClass : List { //Some helper methods used against the List of BaseClass properties //Methods public List GetListOfBaseClasses() { return…
Moe Howard
  • 498
  • 7
  • 12
2
votes
2 answers

Hibernate Annotations How can I override/ignore an inherited id member

I'm extending from a utility base class that maps id to columns @MappedSuperclass public abstract class BaseDTO { @Id @GeneratedValue(strategy=GenerationType.AUTO) public int id; public int getId() { return id;} public…
Anthony Palmer
  • 944
  • 10
  • 15
1
vote
1 answer

JAXB-Eclipselink: Inherited properties

I have following use-case for marshalling a POJO to XML using Eclipselink MOXy 2.3: public abstract class A { public abstract getX(); } public class B extends A { private Foo x; @Override public Foo getX() { return…
quaylar
  • 2,617
  • 1
  • 17
  • 31
1
vote
2 answers

Writing functions in R - calling external functions from libraries

So I am trying to take a bit of code that I use for interactive selection and identification. It works outside of a function but gives an error when I try to run it as a stand alone function. my.identify <- function(data) { # allows you to…
Mike
  • 11
  • 2
1
vote
0 answers

How does Rails determine Rails.configuration.root?

Or rather, how does the determination work? It takes place with the definition of the base.called_from in /lib/rails/engine.rb: def inherited(base) unless base.abstract_railtie? Rails::Railtie::Configuration.eager_load_namespaces << base …
von spotz
  • 875
  • 7
  • 17