StackOverflow Questions for Tag: private-constructor

mat_boy
mat_boy

Reputation: 13698

JaCoCo and missed coverage of private default constructor

Score: 14

Views: 17402

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: 3051

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: 86

Answers: 0

Read More
soimon
soimon

Reputation: 2580

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

Score: 1

Views: 533

Answers: 2

Read More
JDB
JDB

Reputation: 25895

Type representing a generic class with a private constructor

Score: 5

Views: 1236

Answers: 3

Read More
Timmmm
Timmmm

Reputation: 97118

Accessing a private constructor

Score: 0

Views: 1537

Answers: 1

Read More
Hivaga
Hivaga

Reputation: 4536

What is the usage of Private and Protected Constructors in Typescript

Score: 19

Views: 32703

Answers: 4

Read More
f1msch
f1msch

Reputation: 665

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: 9033

Answers: 3

Read More
Erik
Erik

Reputation: 3048

Scala case class private constructor but public apply method

Score: 42

Views: 30973

Answers: 4

Read More
Daemon
Daemon

Reputation: 1675

Mocking a class having private Constructor using GMOCK

Score: 3

Views: 3752

Answers: 1

Read More
Hossam Elsamanoudy
Hossam Elsamanoudy

Reputation: 41

Can't access private constructor from a friend class

Score: 1

Views: 887

Answers: 2

Read More
DGehlhaar
DGehlhaar

Reputation: 161

make_unique doesn't compile for creating a singleton instance

Score: 4

Views: 5775

Answers: 3

Read More
mpen
mpen

Reputation: 283345

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: 1074

Answers: 1

Read More
oblivioncth
oblivioncth

Reputation: 357

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

Score: 0

Views: 669

Answers: 1

Read More
Nice
Nice

Reputation: 91

Pointers to Class Members into a class with a private constructor

Score: 0

Views: 412

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: 5643

Answers: 6

Read More
chad
chad

Reputation: 11

Parameterized Singleton class test

Score: 1

Views: 59

Answers: 1

Read More
PreviousPage 1Next