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

Change Base class field value from Derived

I have a question if it is possible to change field value of the base class, from derived class. In my case, i have two classes base class with windows form RichTextBox, and I want use derived class to clear RichTextBox. Initialize RichTextBox: …
ProgShiled
  • 154
  • 1
  • 1
  • 12
0
votes
1 answer

Wrong override called?

I'm new to programming and this class-things are doing my head in. Here is my code (type is based on userinput) public static Account CreateAccount(int type) { switch (type) { case 1: SaveAcc savings = new SaveAcc(); …
153qa
  • 1
  • 1
0
votes
1 answer

A bug in rails? About model inherited

My env: ruby-1.9.2-preview3; rails-3.0.0.beta3 class PostFather < ActiveRecord::Base def self.inherited(subclass) end end class Post < PostFather end In the console: > Post.new # => TypeError: can't dup NilClass > Post.all # => TypeError:…
Croplio
  • 3,433
  • 6
  • 31
  • 37
0
votes
1 answer

Inherited abstract class with JPA + Circular reference

I have an abstract class AbstractEntity that contains two fields: lastEditTime (LocalDateTime) lastEditUser (UserEntity) Below is the code: @MappedSuperclass public abstract class AbstractEntity { protected LocalDateTime lastEditTime; …
0
votes
1 answer

How to call angular controller scope methods from nested directives in Typescript

Given following common setup: CtrlA (page level controller) |- directiveAA (component e.g. button bar) |- directiveAAA (sub-component e.g. button) I would like to call CtrlA.methodA() from directiveAAA by passing the methodA down the chain…
Kieran Ryan
  • 593
  • 2
  • 8
  • 18
0
votes
0 answers

Element displays "none" when window is smaller than element's width.

I'm wrestling with a Tumblr theme's CSS. I have a section class in the header div: #header .header .content{ position:relative; margin:0 auto; padding:0 2.5rem display: inline-block; vertical-align: middle; } The section hides when the window is…
0
votes
1 answer

CDI Qualifier Inheritcance

Is there a way I can do something like that in CDI: @Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Qualifier public @interface ServerConfiguration { @Nonbinding String url() default…
JDC
  • 4,247
  • 5
  • 31
  • 74
0
votes
2 answers

Unable to bind inherited class to an datagrid wpf c#

//In Test.xaml
shubh
  • 61
  • 1
  • 3
  • 11
0
votes
4 answers

Class asking for unimplemented methods for inherited abstract

I have these 3 classes which is supposed to work together to create a game. But I'm getting an error in one of them where it wants me to add unimplemented methods. The class which is creating the error is called Game and looks like this. package…
Phoenix1355
  • 1,589
  • 11
  • 16
0
votes
1 answer

wse3 inherited class type not accepted as method parameter

I will try to describe my problem. I have a method in a proxy class(auto-generated by wsdl) that accepts as its first argument an object of Type BaseType.I try to pass an inherited type and i get The type xyz was not expected. Use the XmlInclude…
tasoss
  • 5
  • 2
0
votes
1 answer

Visual desginer in form inherited ""

this dont work in designer view .... public partial class FMain : IMasterForm { public FMain() { InitializeComponent(); } } but this... is Ok in desginer view! ... public partial class FMain : Fbase { public…
0
votes
1 answer

inherited list-style shortcode WordPress

I have set up tabbed content (using Ultimatum framework and shortcode) with text, images, and embedded YouTube videos. All works well, but I would like to know how to eliminate the bullet list style that is next to the tabbed menu. I think the class…
0
votes
3 answers

Inherited TextBox missing CaretIndex property

I have the following code: public class myTextBox : TextBox { protected override void OnKeyPress(KeyPressEventArgs e) { base.OnKeyPress(e); if (Char.IsDigit(e.KeyChar)) // Digits are OK { // execpt if…
Derek Johnson
  • 927
  • 1
  • 11
  • 15
0
votes
1 answer

link errors in XCode when defining a C++ class that inherits from a templated class

Here are the contents of the files. First the templated class : in the .h file : template class templatedClass { public : templatedClass(T val); ~templatedClass() {} void writeV(); T v; }; in the .cpp file…
JLDB
  • 31
  • 3
0
votes
3 answers

Untangling Inherited Methods

Okay, so this is my first time implementing classes, and everything's going wrong. I'm implimenting a different class, PhraseGenerator, and the method inherited which I wish to define here is getPhrase(). It needs to return theArcha. Instead of…