Filter interviews by
I applied via Naukri.com
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are contracts that define the methods that a class must implement.
Abstract classes can have constructors while interfaces cannot
A class can implement multiple interfaces but can only inherit from one abstract class
Abstract classes can have instance variables while interfaces cannot
Interfaces can have...
Top trending discussions
Medium to Hard Questions
Medium to Hard Questions
I applied via Campus Placement and was interviewed in Sep 2021. There were 4 interview rounds.
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Examples include function overloading, operator overloading, and inheritance.
Polymorphism helps in creating reusable and flexible code.
Function overriding is a feature in object-oriented programming where a subclass provides a different implementation of a method that is already defined in its superclass.
Function overriding is used to achieve polymorphism in OOP.
The method signature of the overridden method in the subclass must match that of the superclass.
The access level of the overridden method in the subclass cannot be more restrictive than that o...
based on 3 reviews
Rating in categories
Programmer Analyst
94
salaries
| ₹3.5 L/yr - ₹13 L/yr |
Design Engineer
39
salaries
| ₹2 L/yr - ₹7.2 L/yr |
Junior Programmer Analyst
39
salaries
| ₹1.8 L/yr - ₹6 L/yr |
Senior Programmer Analyst
32
salaries
| ₹6.1 L/yr - ₹17 L/yr |
BIM Engineer
25
salaries
| ₹2.3 L/yr - ₹5 L/yr |
Infosys
TCS
Wipro
HCLTech