Flashcards
Intro to Classes and Objects
Flashcards do conjunto (12)
- 1Declaring a Class What is an example of a pre-existing class?Scanner
- 2What does a program require to perform a task?A Method
- 3What does a method house?Statements
- 4Are these statements in the methods visible to the user?No
- 5What is used to design classes?UML
- 6Instantiating an Object In order to use the instance variables and methods of another class, you need to create and object of that class. AKA _____instantiating
- 7What does instantiating a class mean the same as?Creating an object
- 8Instantiating a Class How does the new operator instantiate a class?Allocates memory for a new object and it invokes the object constructor
- 9Explain what these segments of code are NumberClass numbers = new NumberClass(2,3);NumberClass is another class (object) somewhere on the project and this object is now referred to as "numbers"
- 10What is a method signature?A type signature or type annotation defines the inputs and outputs for a function, subroutine or method.
- 11To invoke a method from another class you will need knowledge of the _____ _____method signature
- 12You must compile with the method signature or a _____ _____ error will occurrcompile time
Informações
- Descrição
- Masters Programming I FlashCards sobre Intro to Classes and Objects, criado por nhunsdale02 em 05-06-2014.
- Criado por
- nhunsdale02
- Visualizações
- 13
- Avaliação