Skip to content

Commit 082cae5

Browse files
Update Vehicle.java
1 parent c1eb4e7 commit 082cae5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/oops2/Vehicle.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ void start() {
2525
// }
2626

2727
// valid constructor
28+
// by default access modifier of a constructor is package-private (also called default access)
2829
// Vehicle() {
2930
// System.out.println("This is constructor");
3031
// }

0 commit comments

Comments
 (0)