Question: 3. Create an abstract class named Person. This abstract class is composed of the following instance variables and methods: (8 marks) Instance variables: name,

3. Create an abstract class named Person. This abstract class is composed of the following instance variables

3. Create an abstract class named Person. This abstract class is composed of the following instance variables and methods: (8 marks) Instance variables: name, and contact number Constructor: initialize name and contact number based on value from parameters Concrete method: accessor method for name and contact_number Abstract method: public void introduce()

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an abstract class named Person with the specified instance variable... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!