Write a class, Person, with the variables name, weight and ID, where ID should be protected. The next class Employed should inherit from Person and have a protected variable, salary. The last class, Programmer, contains the variables favProgLang (favorite programming language) and drinksJoltCola.
Which protected variable(s) does the class Employed have?
salary and ID
Use the same class Person, but use this changed class Employed below:
Now which protected variable(s) does the class Employed have?
name, weight, salary and ID