stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Object-Oriented Programming Concepts Flashcards | StudBud
Explore
/
Object-Oriented Programming Concepts
Object-Oriented Programming Concepts
9 terms
·
StudBud Administration
·
9 plays
Test your knowledge on the fundamental concepts of Object-Oriented Programming
Flashcards
9 cards
F
Practice quiz
P
Host live
L
Questions
9
Answers
1
What defines a class in OOP?
A single object
A blueprint for objects
A type of variable
A method of coding
2
True or false: A class can have multiple objects.
True
False
3
What does encapsulation promote?
Open access
Data hiding
Global variables
Code duplication
4
Which keyword is used to create a class?
object
class
create
define
5
True or false: Methods can be private in a class.
True
False
6
What is the purpose of a constructor?
Delete objects
Create variables
Modify classes
Initialize objects
7
Which is NOT a principle of OOP?
Encapsulation
Polymorphism
Inheritance
Iteration
8
What is a method in OOP?
A variable type
A type of object
A class definition
A function in a class
9
True or false: Encapsulation hides data.
False
True