KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
constructor
236 questions · page 2 of 5
Follow Tag
Sort by:
Newest
Votes
Active
17
votes
4
answers
error C2512: no appropriate default constructor available
c++
class
constructor
asked 2011-12-31T16:53:15.720
22
votes
6
answers
How do I declare an array with a custom class?
c++
arrays
constructor
asked 2011-12-20T17:50:38.617
11
votes
6
answers
C++ spooky constructor
c++
constructor
most-vexing-parse
asked 2011-12-12T14:29:55.833
9
votes
4
answers
How can I create a static final java.net.URL?
java
constructor
static
compiler-errors
asked 2011-12-06T07:37:14.060
78
votes
4
answers
What is the difference between getDeclaredConstructors and getConstructors in the Class API?
java
reflection
constructor
asked 2011-11-23T21:16:10.323
91
votes
6
answers
Using C++ base class constructors?
c++
inheritance
constructor
c++11
asked 2011-11-11T12:17:33.850
16
votes
4
answers
Why PHP has no default constructor?
php
constructor
default-constructor
asked 2011-10-26T21:20:11.730
8
votes
2
answers
why does listing the actual constructor of a class in javascript important
javascript
constructor
prototypal-inheritance
prototype-programming
asked 2011-10-10T21:50:11.650
9
votes
4
answers
Exception with multiple parameters in the constructor
java
exception
parameters
constructor
overriding
asked 2011-10-10T14:39:07.580
8
votes
1
answers
Reference a constructor argument from a trait
scala
constructor
scala-2.9
traits
asked 2011-10-10T12:11:27.110
60
votes
6
answers
Base Class Doesn't Contain Parameterless Constructor?
c#
constructor
asked 2011-10-07T15:52:22.590
12
votes
3
answers
C++: Should I initialize pointer members that are assigned to in the constructor body to NULL?
c++
pointers
constructor
initializer-list
ctor-initializer
asked 2011-09-27T20:47:57.313
71
votes
8
answers
Defining an object without calling its constructor in C++
c++
class
object
constructor
asked 2011-09-26T15:04:49.287
9
votes
7
answers
Why set variables inside the construct of a PHP class when you can set them when they are declared?
php
oop
language-agnostic
constructor
asked 2011-09-16T11:27:03.450
13
votes
2
answers
Optimizing the number of constructor calls
c++
constructor
g++
asked 2011-09-06T13:16:20.533
9
votes
6
answers
Can the conditional operator lead to less efficient code?
c++
constructor
return-value
ternary-operator
conditional-operator
asked 2011-08-05T13:41:13.693
45
votes
5
answers
Why does C++ not have a const constructor?
c++
constructor
constants
asked 2011-08-04T04:20:29.207
95
votes
6
answers
How do I call the base class constructor?
c++
constructor
asked 2011-08-03T08:37:47.317
15
votes
2
answers
Why can't I assign to var in Scala subclass?
scala
inheritance
constructor
asked 2011-07-11T21:31:49.057
11
votes
1
answers
Unable to use lambda in initialization list of template in C++
c++
templates
lambda
constructor
c++11
asked 2011-07-08T12:33:26.973
11
votes
3
answers
When does the vptr (pointing to vtable) get initialized for a polymorphic class?
c++
constructor
virtual-functions
overriding
vptr
asked 2011-07-06T05:19:38.987
15
votes
5
answers
Use of constructor in C++
c++
constructor
asked 2011-07-04T18:15:43.880
15
votes
6
answers
Final variables in abstract classes
java
constructor
abstract
final
asked 2011-07-02T15:14:52.147
88
votes
7
answers
Python: Inherit the superclass __init__
python
inheritance
constructor
init
asked 2011-06-30T13:51:37.997
14
votes
4
answers
in what architectures/OS other thread can see default nonfinal field values after constructor call?
java
multithreading
constructor
cpu-architecture
memory-visibility
asked 2011-06-09T14:50:21.927
25
votes
5
answers
What is the most appropriate way to handle corrupt input data in a C# constructor?
c#
parsing
exception
constructor
asked 2011-06-03T06:40:52.817
40
votes
5
answers
How do I initialize a stl vector of objects who themselves have non-trivial constructors?
c++
constructor
initialization
initialization-list
asked 2011-05-26T17:45:21.060
23
votes
5
answers
What does super() method do?
java
class
constructor
super
asked 2011-05-25T01:01:20.000
10
votes
2
answers
In Perl, is there any harm in creating a subroutine with the same name as a package?
perl
syntax
constructor
asked 2011-05-24T20:17:26.660
48
votes
6
answers
Assigning a value to an inherited readonly field?
c#
inheritance
constructor
readonly
asked 2011-05-17T21:47:26.323
24
votes
6
answers
java force an extending class
java
constructor
abstract-class
asked 2011-05-17T09:01:09.753
23
votes
5
answers
Should I call the base class default constructor in the initialization list?
c++
inheritance
constructor
asked 2011-04-25T15:42:07.787
10
votes
2
answers
Building a copy constructor in Java
java
constructor
asked 2011-04-21T20:03:45.300
11
votes
4
answers
C++ compilation error, constructor has no return type... but I didn't specify one
c++
constructor
asked 2011-04-18T11:46:47.827
39
votes
4
answers
Does the implicit copy constructor copy array data members?
c++
constructor
copy
variable-assignment
asked 2011-04-18T08:19:39.123
17
votes
4
answers
What is the function of the "this" keyword in a constructor?
c#
.net
constructor
asked 2011-04-13T02:13:40.050
68
votes
6
answers
The copy constructor and assignment operator
c++
constructor
operators
copy-constructor
assignment-operator
asked 2011-03-20T11:41:40.793
19
votes
3
answers
Passing dict to constructor?
python
dictionary
constructor
asked 2011-03-18T16:42:04.740
68
votes
3
answers
What if I write return statement in constructor?
c++
constructor
return-value
return
return-type
asked 2011-03-10T05:18:51.003
24
votes
3
answers
Calling base constructor in perl
perl
oop
constructor
radix
asked 2011-03-09T17:42:54.660
43
votes
6
answers
Getter/setter in constructor
javascript
prototype
constructor
getter-setter
asked 2011-03-07T16:29:45.523
92
votes
8
answers
Initialize a static final field in the constructor
java
static
constructor
final
asked 2011-02-23T16:28:46.177
39
votes
3
answers
When to use which constructor for ComponentName in Android?
android
constructor
components
asked 2011-02-13T18:02:39.380
16
votes
1
answers
Advantages of setting the "constructor" Property in the "prototype"
javascript
inheritance
prototype
constructor
asked 2011-02-09T11:31:22.440
36
votes
2
answers
Why is a POD in a struct zero-initialized by an implicit constructor when creating an object in the heap or a temporary object in the stack?
c++
constructor
initialization
default-constructor
object-initialization
asked 2011-02-08T12:06:33.083
31
votes
5
answers
Calling a Method in Constructor
c++
object
constructor
asked 2011-02-02T09:32:39.037
92
votes
5
answers
Is it possible to create constructor-extension-method ? how?
c#
constructor
extension-methods
asked 2011-01-24T12:37:32.280
18
votes
3
answers
Creation of Objects: Constructors or Static Factory Methods
java
design-patterns
object
static
constructor
asked 2011-01-06T16:44:19.767
31
votes
2
answers
Can VB.NET be forced to initialize instance variables BEFORE invoking the base type constructor?
.net
vb.net
constructor
initialization
c#-to-vb.net
asked 2011-01-05T09:25:24.107
10
votes
3
answers
Clojure: Assigning defrecord fields from Map
constructor
clojure
asked 2010-12-23T15:55:53.107
← Prev
page 2 of 5
Next →