473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can We make Virtual Contructors?

Hello Freinds
Is it possible to define a Virtual constructor?
if yes then how?
and if no , then how?
thanks

Jun 30 '06 #1
6 1452

<co******@gmail.com> wrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
Hello Freinds
Is it possible to define a Virtual constructor?
if yes then how?
and if no , then how?
If no, then how??? Um, by NOT doing it? :-)
thanks


Check the FAQ:

http://www.parashift.com/c++-faq-lit....html#faq-20.8

You might want to read the whole FAQ. It's very helpful.

-Howard
Jun 30 '06 #2
co******@gmail.com posted:
Is it possible to define a Virtual constructor?

No.

if yes then how?

Non-applicable.

and if no , then how?

How can something NOT be done?

Is this one of those "tree falling in the woods" questions?
--

Frederick Gotham
Jun 30 '06 #3
Frederick Gotham wrote:
co******@gmail.com posted:
Is it possible to define a Virtual constructor?

No.

if yes then how?

Non-applicable.

and if no , then how?

How can something NOT be done?


Easy, you do anything but that thing.
Jun 30 '06 #4
* co******@gmail.com:
Hello Freinds
Is it possible to define a Virtual constructor?
Use e.g. Google to look up the hundreds of previous threads on that topic.

Short answer: if you mean the idiom "virtual constructor", yes (and see
the FAQ); if you mean can you declare a C++ constructor as "virtual", no
(see your textbook); if you mean can we sensibly extend the language to
allow that, yes, in more than one way (see clc++m discussions of that).
if yes then how?
and if no , then how?


See above.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jun 30 '06 #5

"Mark P" <us****@fall2005REMOVE.fastmailCAPS.fm> wrote in message
news:jo*******************@newssvr12.news.prodigy. com...
Frederick Gotham wrote:
co******@gmail.com posted:
and if no , then how?

How can something NOT be done?


Easy, you do anything but that thing.


Or, even easier...do nothing.

- Dennis
Jun 30 '06 #6
> How can something NOT be done?

Is this one of those "tree falling in the woods" questions?


Yep. Sort of like flying by throwing yourself
at the ground and missing.
Jul 1 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ben | last post by:
Hi all, I'm not yet good at thinking the right way in c++ so although I could solve this problem, I'm not sure if they way I'm thinking of is the best way to do it. I need a data type or class...
0
by: Chris F Clark | last post by:
In our C++ project we have some internal bug reporting macros that we use to get useful information when the program does something unexpected. Essentially at the point of the error, we invoke an...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: Amit_Basnak | last post by:
Dear friends I am in the process of creating the new server binary for Systinet Server for C++. I did make all and I am getting C++ error which Im posting below $ make all Error 419:...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.