Understand Inheritance and Polymorphism with example

In this post, we will understand Inheritance and Polymorphism concept of OOP’S practically. In most of the interviews, interviewers ask these inheritance questions and try to confuse you but after reading this post you will easily understand and clear all your confusion. When you derive a class from a base class, the derived class will inherit […]

Read More

OOPS Concept

OOP is a paradigm that used for software development that have following principle. Object: An object is a real world entity that have physical existence in world. Class: a blue print of an object that describe the character and behavior of object. Abstraction: hiding the complexity and show the necessary data to the user. Encapsulations: wrapping up […]

Read More

Abstract Vs Interface

Difference between Abstract and Interface Abstract Class: -Abstract class provides a set of rules to implement next class -Rules will be provided through abstract methods -Abstract method does not contain any definition -While inheriting abstract class all abstract methods must be override -If a class contains at least one abstract method then it must be […]

Read More

Features of OOP

The following are the four basic features of OOP: Abstraction – Refers to the process of exposing only the relevant and essential data to the users without showing unnecessary information. Polymorphism – Allows you to use an entity in multiple forms. Encapsulation – Prevents the data from unwanted access by binding of code and data […]

Read More

OOPS Interview questions

1. What are the basic concepts of OOP? The four basic concepts of OOP are: a.) Abstraction b.) Polymorphism c.) Inheritance d.) Encapsulation 2. What is dynamic or run time polymorphism? – It is also referred to as method overriding. Here, there can be two methods with same name and signature but different implementation. – […]

Read More