Java programming constructor overloading

Asked 1 years ago, Updated 1 years ago, 92 views

Book(){}

Book(String title, String author) {
    this.title = title;
    this.author = author;
}

Is it overloaded if I do this?

java constructor overloading

2022-09-20 16:21

1 Answers

Yeah. Overriding overloading You seem to be trying to understand both concepts. If you look up the difference between the two concepts on the Internet, there are several articles posted, so it would be easier to understand if you refer to them. https://private.tistory.com/25


2022-09-20 16:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.