Computer Science, asked by vertikasinghchaudhar, 3 months ago

Inheritance 1
Using Inheritance Oops concept where one class can acquire the property of another class.
There is given a Dog class with one property
name
and class Greyhound which is a breed of dog. Greyhound inherit the property of Dog class
and have some another property called
color
weight
you have to complete the commented field in Dog class and Greyhound class
i.e Dog class
class Dog {
private String name;
// create parametrize constructor to initialize the all field i.e
name​

Answers

Answered by mirerfan18
5

Explanation:

What is yoyr quwstion woh bolo

Similar questions