Posts

NOTE FOR JAVA BY MUKUL SINHA SIR

Image
Revision of Class IX Syllabus  Unit1 :   INTRODUCTION TO OBJECT-ORIENTED CONCEPTS VERY SHORT & SHORT ANSWER TYPE QUESTIONS Q1. Name two OOP principles. Ans :- Encapsulation and Abstraction are two OOP's principles. Other principles are  Polymorphism, Inheritance, Dynamic Binding and Message Passing Q2. What is an Object? Ans :- An object is an identifiable entity, which contains characteristics and behaviors. To create an object in Java we write Employee e =new Employee(); Q3. What is Polymorphism? Ans :- Polymorphism is an act of using a function for more than one purpose. Example of Polymorphism public class Addition {      int sum;      public void Add(int a, int b)     {        sum=a+b;     }       public void Add(int a, int b,int c) //this method overloads previous Add method     {         sum=a+b+c;      } } Here Add functi...