________________ allow programmers to add new types to an object-oriented language.
The “knowledge” required by a class object is stored using _________________.
Writing two methods with the same name but different signatures is called _____________ that method name.
Given the following class definition:
class SomeClass { private int myInt; }
Write a default constructor method that initializes myInt
to 0.
Write an explicit-value constructor that recieves an integer from its calling program and
stores that value in myInt
.
Write an accessor method for myInt
.
Write code for a driver program that declares and initializes an object of type SomeClass
. This code would go into a driver program, not into the class definition itself.