Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88ceca0

Browse files
Create Child.java
1 parent 1180603 commit 88ceca0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎Child.java‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /