File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ public static void main(String[] args) {
77//So This seems overriding concept applicable for main method but this is
88//"method hiding " and not overriding
99//compile and run by "java IamParent" and "java MainMethod2"
10- public class MainMethod2 {
10+ public class MainMethod2 extends IAmParent
11+ {
1112 public static void main (String [] args ) {
1213 System .out .println ("Child main method" );
1314 }
Original file line number Diff line number Diff line change 1- ain
1+ int []
Original file line number Diff line number Diff line change 1+ public interface MyInterface
2+ {
3+ public void calculate ();
4+ }
5+ public class StrategyPattern implements {
6+
7+ public static void main (String [] args ) {
8+
9+ }
10+ }
Original file line number Diff line number Diff line change 11# Java
22This repo contain concepts of Java and some codes
3+
4+
5+
6+ ## Design Pattern
7+
8+ ### Singleton Pattern
You can’t perform that action at this time.
0 commit comments