StackOverflow Questions for Tag: private-constructor

mat_boy
mat_boy

Reputation: 13666

JaCoCo and missed coverage of private default constructor

Score: 14

Views: 17347

Answers: 7

Read More
MysteriousPerson
MysteriousPerson

Reputation: 690

How to refer to a class with private constructor in a function with generic type parameters?

Score: 5

Views: 2994

Answers: 2

Read More
302Found
302Found

Reputation: 1

Jackson fails to deserialize to class with private constructor after migration to Java 17 + jakarta libraries

Score: 0

Views: 81

Answers: 0

Read More
soimon
soimon

Reputation: 2580

Is not exporting your class as restrictive as using a private constructor?

Score: 1

Views: 528

Answers: 2

Read More
JDB
JDB

Reputation: 25810

Type representing a generic class with a private constructor

Score: 5

Views: 1210

Answers: 3

Read More
Timmmm
Timmmm

Reputation: 96586

Accessing a private constructor

Score: 0

Views: 1526

Answers: 1

Read More
Hivaga
Hivaga

Reputation: 4506

What is the usage of Private and Protected Constructors in Typescript

Score: 19

Views: 32238

Answers: 4

Read More
f1msch
f1msch

Reputation: 659

Why does std::is_trivial work different in different compilers?

Score: 3

Views: 123

Answers: 0

Read More

Index 0 out of bounds for length 0 — why?

Score: -1

Views: 8125

Answers: 3

Read More
Erik
Erik

Reputation: 3048

Scala case class private constructor but public apply method

Score: 42

Views: 30841

Answers: 4

Read More
Daemon
Daemon

Reputation: 1675

Mocking a class having private Constructor using GMOCK

Score: 3

Views: 3747

Answers: 1

Read More
Hossam Elsamanoudy
Hossam Elsamanoudy

Reputation: 41

Can't access private constructor from a friend class

Score: 1

Views: 852

Answers: 2

Read More
DGehlhaar
DGehlhaar

Reputation: 161

make_unique doesn't compile for creating a singleton instance

Score: 4

Views: 5689

Answers: 3

Read More
mpen
mpen

Reputation: 282875

How to return a class instance on the heap, when the relevant ctor is private?

Score: 4

Views: 176

Answers: 5

Read More
Hua Chi Quan
Hua Chi Quan

Reputation: 328

How to create an array with Object that has private copy constructor

Score: 0

Views: 165

Answers: 1

Read More
xan
xan

Reputation: 1053

Why is private constructor still visible in case class?

Score: 2

Views: 1064

Answers: 1

Read More
oblivioncth
oblivioncth

Reputation: 357

Passkey idiom with std::make_shared. xmemory cannot access private Key constructor

Score: 0

Views: 659

Answers: 1

Read More
Nice
Nice

Reputation: 91

Pointers to Class Members into a class with a private constructor

Score: 0

Views: 411

Answers: 2

Read More
code_pro
code_pro

Reputation: 103

Preventing call of a private constructor from within the class in Java

Score: 10

Views: 5609

Answers: 6

Read More
chad
chad

Reputation: 11

Parameterized Singleton class test

Score: 1

Views: 59

Answers: 1

Read More
PreviousPage 1Next