KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
constructor
236 questions · page 1 of 5
Follow Tag
Sort by:
Newest
Votes
Active
61
votes
14
answers
How many objects are created due to inheritance in java?
java
object
constructor
asked 2013-07-26T09:23:36.477
25
votes
2
answers
How to call base class copy constructor from a derived class copy constructor?
c++
inheritance
constructor
copy-constructor
asked 2013-06-26T04:08:14.083
13
votes
3
answers
Java - Inner class constructor - allowed for outer class only
java
constructor
inner-classes
asked 2013-06-19T12:08:49.497
8
votes
3
answers
this statement after contructor's arguments
c#
constructor
asked 2013-05-31T15:51:05.077
34
votes
2
answers
How does multiple inheritance work with the super() and different __init__() arguments?
python
class
constructor
multiple-inheritance
super
asked 2013-05-31T10:23:56.290
13
votes
3
answers
How to overload constructors on signature of a std::function?
c++
c++11
constructor
lambda
overloading
asked 2013-05-11T00:11:58.563
23
votes
3
answers
Java 7 Constructor
java
constructor
asked 2013-05-07T22:17:25.143
18
votes
6
answers
Call to super must be first statement in the constructor, but it is
java
constructor
super
asked 2013-05-06T21:19:12.153
8
votes
2
answers
Why getApplicationContext() in constructor of Activity throws null pointer exception?
android
constructor
nullpointerexception
android-context
asked 2013-04-14T22:03:12.760
48
votes
8
answers
What does "this()" method mean?
java
constructor
this
constructor-overloading
asked 2013-04-07T20:57:33.990
11
votes
4
answers
Should I use an object initializer or a constructor?
c#
constructor
object-initializer
asked 2013-03-21T18:27:23.487
14
votes
3
answers
Where Should The Validation Logic Live?
java
oop
validation
constructor
asked 2013-03-10T22:06:10.897
33
votes
2
answers
Blob constructor browser compatibility
javascript
arrays
constructor
blob
asked 2013-03-08T12:09:30.373
12
votes
2
answers
How does Haskell hide data constructor?
haskell
constructor
system
asked 2013-03-07T14:36:17.657
10
votes
3
answers
Why are vector's multi-argument constructors taking construction parameters not marked "explicit"?
c++
c++11
constructor
explicit
equivalence
asked 2013-02-02T17:29:49.990
10
votes
5
answers
EF 5 Model First Partial Class Custom Constructor How To?
entity-framework
constructor
partial-classes
ef-model-first
asked 2013-01-23T16:53:50.973
8
votes
6
answers
Inheritance from empty base class in C++
c++
inheritance
constructor
polymorphism
abstract-class
asked 2012-12-21T11:37:31.727
35
votes
1
answers
Prevent Proguard from removing empty constructor of fragment
android
constructor
fragment
proguard
asked 2012-11-30T06:35:41.107
11
votes
2
answers
JavaScript module pattern vs Constructor with methods defined in constructor
javascript
constructor
module-pattern
asked 2012-11-28T18:15:02.810
19
votes
6
answers
How to return a value using constructor in c#?
.net
constructor
asked 2012-11-21T16:26:00.693
151
votes
8
answers
How do I call a super constructor in Dart?
inheritance
constructor
dart
superclass
extends
asked 2012-11-07T14:46:26.860
12
votes
4
answers
C# - passing parameters by reference to constructor then using them from method
c#
methods
reference
constructor
parameter-passing
asked 2012-10-29T11:31:58.147
121
votes
5
answers
How can I initialize C++ class data members in the constructor?
c++
constructor
class-members
object-construction
asked 2012-10-17T04:33:36.830
8
votes
4
answers
How to clean initialized resources if exception thrown from constructor in c++
c++
memory-management
constructor
asked 2012-10-04T08:43:23.593
13
votes
5
answers
Naming convention for constructors and destructors in C
c
constructor
naming-conventions
destructor
asked 2012-09-25T13:24:00.767
40
votes
5
answers
Under what circumstances should we make a class constructor private
php
oop
constructor
asked 2012-09-23T14:29:24.523
14
votes
8
answers
How to use both default and custom copy constructor in C++?
c++
constructor
copy-constructor
deep-copy
shallow-copy
asked 2012-09-14T10:52:53.727
36
votes
2
answers
What is the difference between implicit constructors and default constructors?
c++
constructor
default-constructor
explicit-constructor
asked 2012-09-09T15:13:18.410
11
votes
3
answers
Is there a shortcut for `self.somevariable = somevariable` in a Python class constructor?
python
class
constructor
asked 2012-08-30T06:29:54.017
29
votes
5
answers
Java: does Object class have a constructor?
java
constructor
asked 2012-08-22T05:48:55.880
14
votes
4
answers
For a class, what is the difference between default-initialization, and copy-initialization to a value-initialized prvalue?
c++
constructor
initialization
default-constructor
copy-assignment
asked 2012-08-07T20:33:24.437
64
votes
8
answers
Sending reference of object before its construction
c#
reference
constructor
asked 2012-08-02T20:00:34.300
12
votes
5
answers
Constructor Overloading with Default Parameters
c#
constructor
overloading
asked 2012-07-20T18:30:21.023
11
votes
2
answers
Calling a base member in constructor in multiple inheritance in C++
c++
constructor
multiple-inheritance
asked 2012-07-15T14:48:53.703
8
votes
3
answers
Initializing variables outside of PHP constructor
php
oop
constructor
asked 2012-06-28T16:04:07.250
94
votes
6
answers
Cannot reference "X" before supertype constructor has been called, where x is a final variable
java
constructor
final
supertype
asked 2012-06-09T19:05:16.647
12
votes
5
answers
What is difference between new in a constructor and new in a member declaration?
c#
constructor
member
asked 2012-05-13T23:26:25.840
24
votes
3
answers
Order of constructor call in virtual inheritance
c++
constructor
virtual-inheritance
asked 2012-05-10T12:40:56.527
11
votes
4
answers
What difference is there in JavaScript between a constructor function, and function returning object which is invoked as a constructor?
javascript
function
constructor
asked 2012-04-26T06:44:39.863
9
votes
2
answers
What's the use case for __new__ method to return an object of a different type than its first arg?
python
class
object
constructor
asked 2012-04-18T09:01:16.590
9
votes
1
answers
How do I wrap a constructor?
javascript
oop
constructor
asked 2012-04-11T07:14:52.200
17
votes
7
answers
How to instantiate android service with a constructor?
java
android
service
constructor
asked 2012-04-03T18:18:45.883
14
votes
4
answers
Xstream no-args constructor error
java
constructor
xstream
asked 2012-03-08T16:43:03.273
52
votes
6
answers
Passing by reference to a constructor
c++
constructor
pass-by-reference
asked 2012-02-29T21:35:54.327
20
votes
2
answers
Can I make the primary constructor private while keeping auxiliary constructors public in Scala?
scala
constructor
asked 2012-02-27T09:26:02.130
21
votes
7
answers
Create objects in conditional c++ statements
c++
class
object
if-statement
constructor
asked 2012-02-19T03:38:41.907
9
votes
4
answers
What is the advantage of using this JavaScript coding pattern to define constructor functions?
javascript
constructor
anonymous-function
function-prototypes
module-pattern
asked 2012-02-15T22:00:35.273
11
votes
6
answers
Pass argument to a static constructor in Java?
java
static
constructor
static-constructor
asked 2012-01-29T10:28:04.880
11
votes
1
answers
Is it possible to define a constructor-local variable in Scala?
scala
constructor
asked 2012-01-12T22:09:59.443
9
votes
5
answers
How can I emulate constructor and destructor behavior (for particular data types) in C
c++
c
constructor
destructor
asked 2012-01-07T11:58:17.257
page 1 of 5
Next →