Classes and Interfaces Flashcards
Where can class definitions go in your source code?
Where can interface definitions go in your source code?
Where can interface definitions go in your source code?
True or false?: a class definition requires a code block.
I have a class definition. Now what?
What is a constructor?
How can you tell something is a constructor? (Which syntax gives it away?)
Can a class contain multiple constructors?
How can I use a class without a constructor?
True or false?: classes are types.
True
True or false?: interfaces are types.
True
Can I assign the value of a variable declared as an interface to a variable declared as a class?
Can I assign the value of a variable declared as a class to a variable declared as an interface?
What problem does an interface solve that isn’t solved by a class?
What is an abstract class? What problem does it solve that isn’t solved by an interface or non-abstract class?