Posts
Showing posts from August, 2020
Model Sample Paper of JAVA Class IX and X
- Get link
- X
- Other Apps
Question 1 (a) What is an (i) Instance and what is (ii) Literal (i) An object is also called an instance of a class. (ii) A constant which gives the exact representation of data is called literal Question 2 (a) What is Object Oriented Programming (OOP)? Name two OOP languages. Object Oriented Programming is a way of writing computer programs which is using the idea of objects to represent data and methods. These objects talk to each other changing the data in those objects through the methods provided by the object. Java and C++ are two OOP languages. (b) Why is class called an object factory? Explain. A class has the complete description of the data elements the object will contain, the methods the object can do, the way these data elements and methods can be accessed. Given the values of the characteristics, a class knows how to create an object of itself. This is similar to what happens in a factory. Take the example of a car factory, there will be one ...