python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to write Builder Pattern for class that extends abstract class in Java?
I have the "Client" class that extends abstract class "User":
public abstract class User {
private Long id;
private String firstName;
private String lastName;
priva...
G T
Votes: 0
Answers: 1
Java records private constructor with builder
I have record:
@Schema(title = "Car")
public record CarResponse(
@Schema(
description = "The car name",
example = "Audi")
@JsonProperty(&...

dawis11
Votes: 0
Answers: 0
Alternate implementation of Builder Pattern. Anything wrong with this?
Most of the implementations of Builder pattern I have seen are along these lines:
https://github.com/Design-pattrns/Builder-Pattern/blob/master/src/Computer.java
Basically the nested builder class nee...
Marco Polo
Votes: 0
Answers: 1
Inner static Class object is being returned as anonymous
I have written builder design pattern implementation using inner static class in typeScript.
export class BioData {
private name: string | undefined;
private age: number | undefined;
...

Shivanshu
Votes: 0
Answers: 0