Questions tagged [derived]

429 questions
0
votes
2 answers

use a derived class's field in the base class in c#

I want to have a field, defined in a base class, that will affect the creation of an object belonging to the base class. However, I want to be able to override the value of the field, before the Base class cto'r is called. An example: class…
zuuz
  • 859
  • 1
  • 12
  • 23
0
votes
2 answers

Add a speedbutton above a TCustomRichEdit

I am trying to create an TCustomRichEdit with some speedbuttons above it. How can I accomplish this behaviour? The height of the component needs to be the buttons + the richedit. [B][I][U] +-------+ |A1REdit| | | +-------+ Currently I have…
A1rPun
  • 16,287
  • 7
  • 57
  • 90
-1
votes
2 answers

Preventing Access Public Member of Base Class From Derived Class in C#

Is this possible to preventing access public member (such as method, variable etc.) of base class from derived class instance? For example; public class BaseClass { public int m_a; } public class DerivedClass : BaseClass { base.m_a = 10;…
kaernk
  • 63
  • 6
-1
votes
2 answers

Count duplicates in an array and return new array with a key value derived from another array in Javascript

Following on from my previous question, I'd like to change and extend the capability of what was suggested. Here's the data I've got: const things = [ { id: 1, title: 'Something', categoryId: 1 }, { id: 2, title: 'Another…
Neil Merton
  • 553
  • 4
  • 17
-1
votes
2 answers

C++ Inheritance "No Viable Conversion" Error

Can someone let me know what I am doing wrong? I am making the object in my main and trying to pass a string variable to its setter. I keep getting the same error "No viable conversion" #define PatientType_hpp #include "PersonType.hpp" #include…
-1
votes
1 answer

Why is casting from base to derived giving this functionality?

I am confused as to why casting a derived class to a pointer of base class calls upon the derived class method when I haven't used the virtual keyword. Is this normal behavior? Doesn't the pointer hold a Person object in memory, therefore casting it…
user1084113
  • 932
  • 3
  • 15
  • 31
-1
votes
2 answers

Direved and integral problème [SCILAB]

I'm working on a project that calculates the derivative of the speed and the integral of the acceleration. my problem is that I have a lot of acceleration points and speed over time and I can not find the right program for that. example:…
-1
votes
1 answer

Template over multiple dimensions cpp

I have a project with multiple specializations but I need some "BasicStuff" in each of the specializations. Problem: I need to use some templates because only the specialization knows how some objects look like. For Example I have some class…
-1
votes
2 answers

Calling a derived function from an array of the base class

How do you call a derived function from an array of the base class? Ex: #include #include class a{ public: virtual void prnt(){ std::cout<<"a"<
WEPIOD
  • 53
  • 9
-1
votes
1 answer

calling derived class using base class

Below is my code to create a new user or new admin object depending on the boolean isAdmin. The user object is the base object with admin being derived from this. i want to be able to user user->adminClasshere like I have with the user functions.…
Cj280
  • 23
  • 2
-1
votes
1 answer

C# How to set a base class variable using a derived class variable before a method runs

Only second question asked on here so if I'm missing some code that'll help just comment saying so. I have an abstract class Report, a derived class of that called BusinessBreakdown and a derived class of that call BusinessWrittenBreakdown. How can…
-1
votes
1 answer

Constraints on a derived attribute - Postrgres

I have a derived attribute - age in a table in PostgreSQL which is calculated using the current date and the date of birth of each person. How can I set a constraint to only accept a person that is 18 years of age or more?
-1
votes
1 answer

SSIS Update derived columns to table

I've been trying to fix some of the data errors in the wrong field and I managed to do it via derived column. My derived columns consist of those fields that have been fixed. How can I update them into the existing table rows which contains those…
user4725989
  • 21
  • 1
  • 10
-1
votes
1 answer

Conditional split on various fields - moving data to the right field

Im trying to fix a table with data that has been loaded by an ETL task. On the last 6 columns of the table there are some of the data has been placed in the wrong field because of multiple delimiters found in one field. So im trying to create SSIS…
user4725989
  • 21
  • 1
  • 10
-1
votes
2 answers

What is 'Delivered' and 'Derived'?

Can someone explain to me in detail what it means when something is delivered and when something is derived. Thanks buddies.
IE5Master
  • 413
  • 1
  • 3
  • 14