Skip to content

Commit

Permalink
inheritance demo: parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
NirmalSilwal committed Sep 3, 2020
1 parent fbc549a commit cabf210
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CodingBlocks Training/Day16/parentInheritance.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package Lecture16;

public class parentInheritance {

int age = 40;
int rollno = 7;

public void sing() {
System.out.println("Inside parent sing menthod");
}

public void read() {
System.out.println("Inside parent read method");
}
}

0 comments on commit cabf210

Please sign in to comment.