Try to set a class. This class should have instance variables firstName and
lastName. The firstName and lastName instance variables will hold your first
and last names. Please demonstrate understanding of encapsulation by using
the private specifier to restrict access to insatnce variables.
Thank you very much.
D**C 发帖数: 6754
2
你这是作业提吧,自己好好做,不要上来问答案
and
first
using
【在 a********0 的大作中提到】 : Try to set a class. This class should have instance variables firstName and : lastName. The firstName and lastName instance variables will hold your first : and last names. Please demonstrate understanding of encapsulation by using : the private specifier to restrict access to insatnce variables. : Thank you very much.