stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Polymorphism Flashcards | StudBud
Explore
/
Polymorphism
Polymorphism
12 terms
·
StudBud Administration
Test your knowledge and deepen your understanding of object-oriented programming concepts
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
Access level of __salutation?
Protected
None
Public
Private
2
What is a class interface?
Data type
Method list
Variable set
None of the above
3
True or false: Aggregation means ownership.
True
False
4
What is encapsulation used for?
Hiding data
Duplicating data
Accessing data
Sharing data
5
Which code snippet shows composition?
Calculator: self.add=Add()
Calculator(add)
Calculator(Add)
Add: def sum(self,x,y)
6
What does UML stand for?
User Mode Linux
Unique Method Line
Universal Method List
Unified Modelling Language
7
Which principle does method overloading exemplify?
Polymorphism
Abstraction
Inheritance
Encapsulation
8
True or false: Private methods can be accessed outside the class.
False
True
9
Purpose of abstract method?
Data storage
Increase complexity
Method hiding
Force implementation
10
What does static method lack?
Return statement
Object parameter
Function name
Method body
11
What does overriding allow?
Method reuse
Change method behavior
Variable access
Access private methods
12
Complete the sentence: Method overloading allows...
...methods to be private
...multiple methods with same name
...only one method per class
...methods to be static