Question
What is the primary aim of the ‘One Nation, One
Election’ initiative?Solution
To reduce the frequency of elections and associated costs
Which OOP concept allows a class to inherit properties and behaviors from another class?
An "object" is an instance of a:
What is the primary difference between an abstract class and an interface in Java (pre-Java 8)?
What is an interface in OOP (e.g., Java, C#)?
How does abstraction contribute to code maintainability?
Which access modifier is most commonly used to achieve data hiding in encapsulation?
What is the main purpose of an interface in OOP?
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
Which type of polymorphism is achieved through method overloading (where multiple methods have the same name but different parameters)?
An abstract class in Java/C++: