Question: BDay - The BirthDay class below will contain two int attributes for day and points month, a constructor and a setBDay method. The setBDay method
BDay - The BirthDay class below will contain two int attributes for day and points month, a constructor and a setBDay method. The setBDay method is intended to be accessed outside the class. Which of the following replacements for /missing code is the most appropriate implementation of the class? public class Birthday raissing code > Answer A. private int day, private int month; public BirthDay() { / implementation not shown) public void setBay (int d, int n) (1 implementation not shown) Answer B. public int day: public int month public BirthDay() { implementation not shown"/ public void set Day (int d, int ) ( Implementation not shown) Answer C. public int day; public int month private BirthDay() ("implementation not shown) public void setBay (int d, inta) ( implementation not shown/) Answer D. private int dayal private int month private Birthday (implementation not show"/ public void sety (int d, int n) (Laplementation not shown) A 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
