Question: SHORT ANSWER: 10. Declare a struct named Employee that has three members: a string member name, an integer member empNo, and a double member salary
SHORT ANSWER: 10. Declare a struct named Employee that has three members: a string member name, an integer member empNo, and a double member salary 11. Write a For or While loop that can be used to display all the odd numbers from 7 to 101 separated by commas (14pts) Java-CS 206 MULTIPLE CHOICE: I. What is the valid way to declare an integer variable named age? intage; b) age int; c) integer age d) int age 2 Encapsulation means a) Combination of properties and methods in a single unit b) Having methods of the same name c) Making enhancements to an existing class without modifying the original d) Relationship between superclasses and subclasses. 3. Inheritance means a) Combination of properties and methods in a single unit b) Having methods of the same name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
