Best Regards for me
Best Regards for me Interview Questions and Answers
Q1. Q1.What is constructor? Q2What is encapsulation? Q3Which r parameter abstraction?
A constructor is a special method used to initialize objects in a class.
Constructors have the same name as the class they belong to.
They are automatically called when an object is created.
Constructors can have parameters to initialize object properties.
They can be overloaded to provide multiple ways of object initialization.
Q2. 1.What is overriding? 2What are overloading?
Overriding is when a subclass provides a different implementation of a method that is already defined in its superclass.
Overriding is used to achieve runtime polymorphism.
The method in the subclass must have the same name, return type, and parameters as the method in the superclass.
The overridden method in the superclass must be marked with the 'virtual' or 'abstract' keyword.
Example: Inheritance where a subclass overrides a method from its superclass.
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month