which one of the following choices is the correct way to declare a classBird which specifies an
Fantastic news! We've Found the answer you've been seeking!
Question:
which one of the following choices is the correct way to declare a class"Bird" which specifies an abstract "flies" method that returns a boolean?
1. public abstract class Bird {
public abstract flies() { return true;}
}
2. public abstract class Bird {
public abstract boolean flies() { return true;}
}
3. public abstract class Bird {
public abstract boolean flies();
}
4. public abstract class Bird {
public abstract flies();
}
5. public class Bird {
public abstract boolean flies();
}
Related Book For
Accounting concepts and applications
ISBN: 978-0538745482
11th Edition
Authors: Albrecht Stice, Stice Swain
Posted Date: