Skip to content

Commit

Permalink
add public access modifier example code
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyasinahmed committed Sep 21, 2023
1 parent b5e8b4a commit 41f598c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions basic_oop/basic_oops/src/main/java/accessModifiers/defaultM/B.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package accessModifiers.defaultM;

class A{
void msg() {
System.out.println("Hello");
}
}
public class B {
public static void main(String[] args) {
A obj = new A();
obj.msg();
}
}

0 comments on commit 41f598c

Please sign in to comment.