1/8
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What is a class?
A class is a blueprint for creating objects. It defines methods and attributes that objects created from the class will have.
What is an object?
An object is an instance of a class. It represents a specific entity created using the blueprint provided by the class.
What is instantiation?
Instantiation is the process of creating an object from a class using its constructor.
What is encapsulation?
Encapsulation is the bundling of attributes and methods together within a class and restricting direct access to some attributes to protect them from unintended modification.
What is inheritance?Inheritance is a mechanism where a child class can inherit attributes and methods from a parent class, allowing code reuse and extension.
What is aggregation?
Aggregation is a type of relationship where one class is associated with another, but the associated object can exist independently of the main object.
What is composition?
Composition is a type of relationship where one class contains another class, and the contained object is dependent on the containing object.
What is polymorphism?
Polymorphism allows objects of different classes to be treated as objects of a common parent class. It can be implemented using method overriding or interfaces.
What is method overriding?
Method overriding occurs when a child class provides a specific implementation of a method already defined in its parent class.