Computer Science, asked by dhruvasodariya1010, 7 months ago

Which data type would you use to represent the following values? a) Child age b) Employee salary c) Whether somebody has children or not d) Apartment letter NOTE: THIS QUESTION IS OF JAVA.

Answers

Answered by aviral008
1

can't understand your question pls write it properly and then post it.

Answered by keerthijaya7777
0

Answer:

Create a class with a method that prints "This is parent class" and its subclass with another method that prints "This is child class". Now, create an object for each of the class and call

1 - method of parent class by object of parent class

2 - method of child class by object of child class

3 - method of parent class by object of child class

Similar questions