What is the correct syntax for defining a new class Parakeet based on the superclass Bird?
A. class Parakeet isa Bird{ }
B. class Bird defines Parakeet{ }
C. class Bird hasa Parakeet{ }
D. class Parakeet extends Bird{ }
Answer:D
What is the correct syntax for defining a new class Parakeet based on the superclass Bird?
A. class Parakeet isa Bird{ } B. class Bird defines Parakeet{ } C. class Bird hasa Parakeet{ } D. class Parakeet extends Bird{ }