Object-Oriented Programming ππ»π¦ Flashcards
What is the one class that is not part of any other class?
Object. Object is a special class located in the package java.lang.
What class does toString() belong to?
Object class.
In an object-oriented programming language, it is possible to make β β of an existing class.
subclasses
What are the stages of the software life cycle?
Hint: Sam Always Does Coding Through D.Ms.
- Specification
- Analysis
- Design
- Coding
- Testing
- Debugging
- Maintenance
Define the term Software Engineering
The systematic approach to programming, using accepted principles of good design.
Which term is used to represent the characteristics or properties of an object in OOP?
Attributes
In OOP, what is the purpose of the βthisβ keyword?
To reference the current object within a method.
What is the significance of inheritance in object-oriented programming?
It enables the creation of subclasses that inherit characteristics from a parent class.
How are constructors used in object-oriented programming?
To initialize object attributes with predefined values
Which OOP concept allows a class to have multiple methods with the same name but different parameters?
Polymorphism
Which access modifier allows a class member to be accessed only within the same class?
Private
How does the concept of polymorphism contribute to code flexibility and extensibility in object-oriented programming?
Nope: It allows objects to inherit attributes and behaviors from other objects.