|
by: Peter Hamilton |
last post by:
I am trying to implement inheritance but I am having a difficult time with some concepts.
What I am trying to do is have a Child object inherit from the Parent, and when you set a property value at the Parent level, I want all of the children to see this change. Likewise, when I set a Parent's property value in the child object, both the parent and all of the children see the change.
Maybe what I am trying to do is not "inheritance" after...
|
by: Brad Kartchner |
last post by:
I'm attempting to write a program with several child classes derived from a
single parent class. The parent class has a couple of variables that need
to be present in each of the child classes. However, I need the objects
created from each of the derived classes to share these variables with other
objects of the same class but not with other objects of the other derived
classes.
Let me try to clarify with an example:...
|
by: Larry Lard |
last post by:
My turn to ask a question :)
Consider this class hierarchy:
'code starts
Public Class CEventSource
Public Event MyEvent()
End Class
Public Class CBaseEventSourceContainer
|
by: Peter Rothenbuecher |
last post by:
Hello,
when I try to compile the following code with g++ -o client client.c
#include<sys/socket.h>
#include<stdio.h>
#include<stdlib.h>
#define ADDRESS "mysocket";
#define MAXLEN 200;
|
by: Manuel |
last post by:
Hi!
If I've a vector filled with abstract classes, can I push in it the
derived classes too? Even if derived classes have new methods?
I've done some experiments, and it seem I can push the derived classes,
but I can use them only calling the methods declared in abstract class
(the new methods declared only in derived classes return an error).
Please take a look to my code (hey, this is not an homework!
|
|
by: Manuel |
last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using
devc++.
So I've imported the glut32.dsp into devc++, included manually some
headers, and start to compile.
It return a very strange error. In your experience, where I should
looking to find the real error? Surely the sintax of glut is correct...
gcc.exe -c glut_bitmap.c -o glut_bitmap.o -I"C:/Dev-Cpp/include"
-I"../../include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG...
|
by: Sreedhar |
last post by:
I am working on the application which will use wse2.0 to get the data from
the server, when I host the application in sharepoint has wse3.0 I am getting
the following error.
System.Web.Services.Protocols.SoapHeaderException:
Microsoft.Web.Services2.Security.SecurityFault: The specified source for the
derivation is unknown ---> System.Exception: WSE512: This derived key token's
parent cannot be found. The reference to the parent token...
|
by: craig |
last post by:
During construction of an object "parent", if you create a subobject
that stores a pointer to the parent (through the "this" pointer), will
that pointer be valid when the subobject is later called?
class Parent
{
Parent::Parent() { child = new Child( this) };
Child *child;
};
|
by: kirk_korver |
last post by:
Group,
I'm trying to understand the problem with the following code. The
problem I get is associated with the line "int fmt = format(); " at
the bottom of the line. The error I get says that "format does not
take 0 arguments". It appears that the version of "format" that
returns an INT is NOT available to a derived class. Please notice that
there are 2 version of the format function.
Is this correct behavior? I get the same error...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|