Question: in java create a class called pencilcase. decalre an instance variable to represent the color declare an instanse variable called capacity to represent the amount

in java create a class called pencilcase.

decalre an instance variable to represent the color

declare an instanse variable called capacity to represent the amount of penicls in the case

declare an instance variable called penicls to store them inside the case

create a constructor that receives the values for capacity and color of the pencil case as parameters

write statements to declare the size of the variable pencils according to the value of capacity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!