What are JavaScript Data Types?
Following are the JavaScript Data types: Number String Boolean Object Undefined
Following are the JavaScript Data types: Number String Boolean Object Undefined
Java is a complete programming language. In contrast, JavaScript is a coded program that can be introduced to HTML pages. These two languages are not at all inter-dependent and are designed…
JavaScript is a very powerful client-side scripting language. JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage…
Multiple inheritances cannot be achieved in java. To overcome this problem the Interface concept is introduced. An interface is a template which has only method declarations and not the method…
Method overloading happens for different classes or within the same class. For method overloading, sub-class method should satisfy the below conditions with the Super-class method (or) methods in the same…
Method overriding happens if the sub-class method satisfies the below conditions with the Super-class method: Method name should be the same The argument should be the same Return type should…
Polymorphism means many forms. A single object can refer to the super-class or sub-class depending on the reference type which is called polymorphism. Example: Public class Manipulation(){ //Super class public…
Purpose of Encapsulation: Protects the code from others. Code maintainability. Example: We are declaring ‘a’ as an integer variable and it should not be negative. public class Addition(){int a =…
Inheritance means one class can extend to another class. So that the codes can be reused from one class to another class. The existing class is known as the Super class…
OOPs concepts include: Inheritance Encapsulation Polymorphism Abstraction Interface