Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
instantiate
- Page 1
instantiate the generic type within the generic class
Programming
Software Development
15 Years Ago
by lqdo
… in different kind of xml files. Is it possible to
instantiate
the type of the generic class within that class? example…
instantiate an object
Programming
Software Development
14 Years Ago
by glamourhits
write an instruction to
instantiate
an object named individ of a class named group. plese help .. thank you
Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by FC Jamison
… how would I make it so when you try to
instantiate
it more than once you still end up with a…
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by FC Jamison
… with a main to illustrate how when you try to
instantiate
it more than once * you still end up with a…
How do I instantiate an object of another class?
Programming
Software Development
14 Years Ago
by BboyRodimus
…. I'm stuck trying to do figure out how to
instantiate
an object of the class Address: [B]Address class:[/B… I do it for this one?) It asks me to
instantiate
an object of Address, calling the constructor of the Address…
Mailer Error: Could not instantiate mail function.
Programming
Web Development
7 Years Ago
by soph2602
… so. The error is "Could not
instantiate
mail function. Mailer Error: Could not
instantiate
mail function." Appreciate if you could…
error C2259: 'ClassName' : cannot instantiate abstract class
Programming
Software Development
16 Years Ago
by karang
… line I am getting an error error C2259: 'className' : cannot
instantiate
abstract class From this error I have understood that we…
window.onload. Variable does not instantiate
Programming
Web Development
15 Years Ago
by freelancelote
… for later use. It seems that the variable does not
instantiate
(and btw. there is more than one <p>…
i need to instantiate one of the objects HELP
Programming
Software Development
15 Years Ago
by sasaB
…(); aGuessAccount.displayinfo(); cin.get(); return 0; } [/code] i need to
instantiate
one of the objects HELP
Re: i need to instantiate one of the objects HELP
Programming
Software Development
15 Years Ago
by mrnutty
>>i need to
instantiate
one of the objects HELP come again?
why can't I instantiate my webservice class?
Programming
Web Development
14 Years Ago
by rpng
I can't seem to reach/
instantiate
a web method from a webservice in my asp.net …
cannot instantiate abstract class
Programming
Software Development
14 Years Ago
by svatstika
… ob; The error is: Error 1 error C2259: 'char_queue' : cannot
instantiate
abstract class I don't understand what is going on…
Could not instantiate mail function in Joomla..?
Programming
Web Development
14 Years Ago
by Dragonbaki
… with entries in Contact module, it says "Could not
instantiate
mail function" with "Thank you for your mail…
Dynamically instantiate a class based on user choice
Programming
Software Development
13 Years Ago
by Srin
I need to
instantiate
a class during runtime based what a user has selected …
Re: Dynamically instantiate a class based on user choice
Programming
Software Development
13 Years Ago
by JamesCherrill
… the classes were instance inner classes, so you couldn't
instantiate
them from static main without an instance of the outer…
URGENT:cannot instantiate abstract class
Programming
Software Development
13 Years Ago
by FEC
… a program and its giving me this error "cannot
instantiate
abstract class", can someone help me please? this is…
Re: URGENT:cannot instantiate abstract class
Programming
Software Development
13 Years Ago
by KMat
… a program and its giving me this error "cannot
instantiate
abstract class", can someone help me please? this is…
How to instantiate object from parsing a file?
Programming
Software Development
12 Years Ago
by Amy_3
I am new to python. How to
instantiate
object from parsing a file? I got a error. File &…
log4j cannot instantiate the file named ...
Programming
Software Development
10 Years Ago
by gagun
… value for key log4j.appender.File log4j:ERROR Could not
instantiate
appender named "file". 2014/06/30 06:40…
Re: instantiate the generic type within the generic class
Programming
Software Development
15 Years Ago
by kvprajapati
XML Serialization/Deserialization : It serialize only public properties and fields and does not preserve type fidelity.
Re: instantiate the generic type within the generic class
Programming
Software Development
15 Years Ago
by lqdo
thx for the reply but thats not what i ment. I want to create an object of the class that is given as argument in the generic class. I dont want to serialize that type into xml but the properties. The example in the opening post is shows the thing i want to do. I have alterd it a little so I can demonstrate the way i want to acces the my …
Re: instantiate an object
Programming
Software Development
14 Years Ago
by daviddoria
Is it: A) [code] group individ; [/code] B) [code] group* individ = new group; [/code] or C) [code] Do_Your_Own_Homework(); [/code]
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by mike_2000_17
This is called a [Singleton](http://en.wikipedia.org/wiki/Singleton_pattern) class. The most straight-forward way to implement it in C++ is as follows: // in the header file: class MySingleton { private: // private constructor: MySingleton() { }; // private copy-constructor (left undefined):…
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by mike_2000_17
The `Rectangle::getInstance(3, 3);` is the syntax for calling a `static` member function of a class. Because a static member function is associated to the class only, not to objects of the class. In other words, regular member functions operate on one instance of the class (object), but static member functions do not, they are just defined as part …
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by FC Jamison
That code isn't working with my code. Can you check it? Edit: Now it's working. Question: The getInstance function call is `Rectangle* Rectangle::getInstance(int l, int w)` but it's returning a reference instead of a pointer. How does that work?
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by mike_2000_17
In the code above, it does return a pointer. This returns a pointer: Rectangle* Rectangle::getInstance(int l, int w) { static Rectangle firstInstance(l, w); return &firstInstance; }; If you want to return a reference, you can use this: Rectangle& Rectangle::getInstance(int l, int w) { static …
Re: Instantiate a C++ class only ever once in a program?
Programming
Software Development
11 Years Ago
by rubberman
One of the main reasons to use references rather than pointers is that you don't need to check for a null pointer. The object must exist to get a reference to it. A pointer may or may not point to a real object (null if not).
Re: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.f scon
Programming
Software Development
14 Years Ago
by johndoe444
… .;fscontext.jar;providerutil.jar First Jndi javax.naming.NoInitialContextException: Cannot
instantiate
class: com.sun.jndi.f scontext.RefFSContextFatory [Root exception is…
Instantiate object inside class definition
Programming
Software Development
14 Years Ago
by A Huang
Hi there, I see a sample code that an object is instantiated within the class definition block. But when I test the folllowing, I got error "Process is terminated due to StackOverflowException."? [code] Imports System Module xx Sub Main() Dim a As New c() End Sub End Module Public Class c Dim b As New c() End …
Re: Instantiate object inside class definition
Programming
Software Development
14 Years Ago
by GeekByChoiCe
Yes, because that is an infinity loop. You create a new class "c" and each time you create a new c you create again a new c...
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC