Java programming constructor overloading

Asked 2 years ago, Updated 2 years ago, 102 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.