|
| 1 | +import java.util.List; |
| 2 | +import java.util.Map; |
| 3 | + |
| 4 | +public class Comedians { |
| 5 | + private final String fullName; |
| 6 | + private final String nationality; |
| 7 | + private final String style; |
| 8 | + private final String activeYears; |
| 9 | + private final List<String> famousWorks; |
| 10 | + private final double netWorth; |
| 11 | + private final Map<String, Integer> socialMediaFollowers; // e.g., {"Instagram": 1000000} |
| 12 | + private final boolean isStillActive; |
| 13 | + |
| 14 | + public Comedians(String fullName, String nationality, String style, String activeYears, |
| 15 | + List<String> famousWorks, double netWorth, |
| 16 | + Map<String, Integer> socialMediaFollowers, boolean isStillActive) { |
| 17 | + this.fullName = fullName; |
| 18 | + this.nationality = nationality; |
| 19 | + this.style = style; |
| 20 | + this.activeYears = activeYears; |
| 21 | + this.famousWorks = famousWorks; |
| 22 | + this.netWorth = netWorth; |
| 23 | + this.socialMediaFollowers = socialMediaFollowers; |
| 24 | + this.isStillActive = isStillActive; |
| 25 | + } |
| 26 | + |
| 27 | + public String getFullName() { |
| 28 | + return fullName; |
| 29 | + } |
| 30 | + |
| 31 | + public String getNationality() { |
| 32 | + return nationality; |
| 33 | + } |
| 34 | + |
| 35 | + public String getStyle() { |
| 36 | + return style; |
| 37 | + } |
| 38 | + |
| 39 | + public String getActiveYears() { |
| 40 | + return activeYears; |
| 41 | + } |
| 42 | + |
| 43 | + public List<String> getFamousWorks() { |
| 44 | + return famousWorks; |
| 45 | + } |
| 46 | + |
| 47 | + public double getNetWorth() { |
| 48 | + return netWorth; |
| 49 | + } |
| 50 | + |
| 51 | + public Map<String, Integer> getSocialMediaFollowers() { |
| 52 | + return socialMediaFollowers; |
| 53 | + } |
| 54 | + |
| 55 | + public boolean isStillActive() { |
| 56 | + return isStillActive; |
| 57 | + } |
| 58 | +} |
0 commit comments