by: Sergey Krushinsky |
last post by:
Hello all,
Is there a common way to emulate constructor overloading in Python class?
For instanse, I have 3 classes:
1/ Polar - to hold polar coordinates;
2/ Cartesian - to hold cartesian...
|
by: cppsks |
last post by:
Here is the code that I am working with:
#include <new>
#include <iostream>
#include "stdlib.h"
class Base1
{
public:
Base1() { cout << "Base1:" << this << endl; }
|
by: Rude Dog |
last post by:
The question below was probably asked, but I couldn't find
it.
If you have a class with an overloaded constructor, how do
you have one constructor call another? In Java the this
operator does...
|
by: Sam Sungshik Kong |
last post by:
Hello!
I am wondering what's the best practice about setting object data using
constructor parameters.
Let's say that I am creating a Person class.
class Person
{
private string name;
|
by: Shayne H |
last post by:
I have a query about an intricacy of inheritance and overloading.
I am coding a class inherited from System.Uri.
If I look in the object browser (with hidden members shown) there are 4
overloaded...
|
by: Klaus Löffelmann |
last post by:
Hi,
does anybody know, why the second contructor isn't called in this example?
Are you able to reproduce this bug?
Thanks
Klaus
Public Class Something
|
by: coinjo |
last post by:
i have to overload a constructor that takes a constant static public
data member of a class... Can anybody tell me its syntax of prototype
and implementation?
|
by: needin4mation |
last post by:
The code is taken from the book Professional C#:
abstract class GenericCustomer
{
private string name;
public GenericCustomer(string name)
{
this.name = name;
}...
|
by: Joseph Turian |
last post by:
I have a global method "update_var(double v);", which updates the value
of global variable 'var'.
I have a class Foo, which would like to know when 'var' is updated.
Let's say I make an ABC:...
|
by: Jamie Risk |
last post by:
Two classes:
public class _A {
public int Value1;
public int Value2;
public _A(int v1, int v2) {
this.Value1 = v1;
this.Value2 = v2;
}
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|