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
2 answers

xml serialization and Inherited Types

I got the error "{"The type Device1 was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."}" Currently I have: public abstract class Device { .. } public class Device1 : Device { ...…
user1902346
  • 799
  • 1
  • 12
  • 21
0
votes
1 answer

Is it possible to define the inherited hook for the ActionController::Base class in Rails 2.3.11

I am trying to implement the inherited method for ActionController::Base class. My purpose is to call methods on classes that inherit from ActionController::Base like ApplicationController to make them include certain modules. At the momement my…
0
votes
1 answer

How to create inherited android app?

I'd like to create another app from my main app, for instace 'app with ad'. For now i created branch in my repo, change the main source as i wanted and .. what's now? If i build the new one it will be named as my 'main app'.. How to easy deal…
xliiv
  • 5,399
  • 5
  • 29
  • 35
0
votes
1 answer

ReportViewer Table with list of inherited objects

I need to show a table with a list of inherited objects. For example: public abstract class Animal { public string Name { get; set; } public abstract string Detail { get; } } public class Dog : Animal { public override Detail { get {…
Nicolás
  • 3
  • 2
-1
votes
1 answer

Interfaces and inherited classes

Good evening, I'm trying to implement SOLID principle with DI for the first time in a middle-size project. Most of the time I understand but now I have a trouble. Let me take a poor exemple but it shows the structure of the app. I have inherited…
Gadsweb
  • 53
  • 10
-1
votes
1 answer

label inside usercontrol not visible

.NET 4.6.1. I have created a windows forms usercontrol. I have changed it to inherit System.Windows.Forms.TreeView instead of Control. In it, i have added (in the designer) a label, which i decide inside the control when will the label be shown. The…
FaultyOverflow
  • 153
  • 1
  • 9
-1
votes
3 answers

c++ Recursive headers for abstract classes

Let's say I want to compile something like this: //Prova.h: //-------------------- #ifndef _PROVA_ #define _PROVA_ #include "Terza.h" class Prova{ public: Prova(); }; #endif and //Terza.h: //-------------------- #ifndef _TERZA_ #define…
Luke Givens
  • 829
  • 1
  • 11
  • 15
-2
votes
4 answers

project have got interface ...i think this error by netbean

I've got a project looking like this : public interface Payable{ double getPaymentAmount(); // calculate payment; no implementation } // end interface Payable then I've got an abstract class like this : public abstract class Employee…
jin code
  • 1
  • 1
-3
votes
2 answers

Inheritance and STL vector

let's say i got a class "Simple" with this private var : std::vector m_listePoint; which constructor is Simple(EnumCouleur::tEnumCouleur c,vector listeP); (couleur is inherited from her mother class) i got another class which is "Circle" (…
Niko
  • 35
  • 7
1 2 3 4 5 6
7