Data Structure Interview Questions
- Question 1) What is meant by Object Oriented Programming – OOP?
- Question 2) What is meant by Structural Programming?
- Question 3) What is meant by Class?
- Question 4) What is meant by Object?
- Question 5) What is meant by Method?
- Question 6) What is meant by Attribute?
- Question 7) What is meant by Data Hiding/Encapsulation?
- Question 8) What is meant by Inheritance?
- Question 9) What is meant by Polymorphism?
- Question 10) What is meant by Final Class?
- Question 11) What is meant by Abstract Class?
Below are the list of Best Data Structure Interview Questions and Answers
Inheritance is the ability of a class to inherit the characteristics and properties of another class. This is one of the most significant features of the object-oriented programming language. There are mainly three modes of inheritance public, protected and private and two types of classes: subclass(the one which inherits) and the base or the superclass(from which inheritance is done). And there are five ways in which inheritance can be done.
Polymorphism in object-oriented programming is the capability by which an object is able to take on numerous different forms. Polymorphism is used mainly when a reference to a child class object is made by a parent class. In Java, each and every object can be polymorphic since they can all pass the IS-A test easily. This is because an object is said to be polymorphic when it can successfully pass the IS-A test.
When there are different methods in one class that have the same name but distinct parameters, overloading takes place. What happens at the time of overriding is that the methods have the same name as well as the same parameters. But one method here will belong to the parent class the other will belong to the child class. Also, these two are different types of concept as well, where overriding is the run-time type and the overloading is the compile-time type.
Also Read Related Data Structure Interview Questions
|C programming interview questions|
Subscribe Our NewsLetter
Never Miss an Articles from us.
- Most Common Interview Questions
- Python Flask Interview Questions
- NoSQL interview questions
- JQuery Interview Questions
- C programming interview questions
- AngularJS Interview Questions
- Node JS Interview Questions with Express
- Core Java interview questions
- HTML Interview Questions
- Laravel interview questions
- Wordpress Interview Questions
- PHP Interview Questions