No it doesn’t count as an instrument
Class Item {
// item class attributes
string itemName;
int itemQuantity;
double itemPrice;
...
}
class grocerylist {
// you can use arrays or any other containers like ArrayList, Vectors,...etc depends on programming language you use
Item[50] itemList;
int size;
public grocerylist () {
this.size = 0;
}
public void addItem(Item i) {
itemList[size] = i;
size = size +1; // Or size++
}
}
Answer:(c) abstract class A { abstract void unfinished(); }
Explanation:
A legal abstract class must have the keyword abstract before the class and an abstract class has abstract functions with the keyword abstract written and a void as the return type.