We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1180603 commit 88ceca0Copy full SHA for 88ceca0
Child.java
@@ -0,0 +1,26 @@
1
+public class Child
2
+{
3
+ String name="G Pavan Shanmukha Madhav";
4
+ int rollno=22049;
5
+ int age=19;
6
+ String gender="Male";
7
+
8
+ public static void main(String[] args)
9
+ {
10
+ Parent p1=new Parent();
11
+ System.out.println("Parent Details");
12
+ System.out.println(p1.fname);
13
+ System.out.println(p1.fgender);
14
+ System.out.println(p1.fage);
15
+ System.out.println(p1.mname);
16
+ System.out.println(p1.mgender);
17
+ System.out.println(p1.mage);
18
+ System.out.println("Student Details");
19
+ Child c1=new Child();
20
+ System.out.println(c1.name);
21
+ System.out.println(c1.rollno);
22
+ System.out.println(c1.gender);
23
+ System.out.println(c1.age);
24
25
+ }
26
+}
0 commit comments