My Basket
You have nothing in your shopping cart yet.
Title: MCS-024 2nd sem
Description: MCS-024 2nd sem,Course Code : MCS-024 Course Title : Object Oriented Technologies and Java Assignment Number : BCA(IV)/024/Assignment/, Solved Assignment
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
BCA & MCA (IGNOU)
http://www
...
com
Course Code
: MCS-024
Course Title
: Object Oriented Technologies and Java
Assignment Number
: BCA(IV)/024/Assignment/ 2016
April, 2016 (For January 2016 Session)
1
...
(5 Marks)
Ans:
Object oriented programming allows a decomposition of a problem into number entities
called objects and then builds data and functions around these objects
...
However, functions
of one object can access the functions of other objects
...
Inheritance: it is a process to create a new class from existing class or classes
...
Thus class „A‟ is a parent class and class „B‟ is a
child class
...
/ignouassignmentfree
IGNOU ASSIGNMENT GURU Page-
Class and object
A class is a blueprint that describes characteristics and functions of entity
...
A class is collection of the properties
and methods are called members
...
Data abstraction: - it is a process that provides only essential features by hiding its
background details
...
1
Features of Object Oriented Programming
BCA & MCA (IGNOU)
http://www
...
com
Polymorphism: - Generally, it is the ability to appear in different forms
...
It‟s the ability to
redefine methods for derived classes
...
(2 Marks)
Ans:
The Java programs use compiler and interpreter
...
Java interpreter is a part of java runtime environment that reads byte code and convert it
into executable code on any operating system
...
The JVM makes java portable so that java program can run on any platform
...
(c) Write a program to explain how array of objects may be created in java
...
out
...
disp(i);
/ignouassignmentfree
IGNOU ASSIGNMENT GURU Page-
2
}
BCA & MCA (IGNOU)
http://www
...
com
}
}
}
2
...
(4 Marks)
...
25f;
double sineVal = 12345
...
out
...
out
...
out
...
out
...
out
...
out
...
out
...
out
...
ignouassignmentguru
...
out
...
out
...
out
...
(i) Class and objects
(ii) Abstraction and encapsulation
(iii) Application program and applet program
(6 Marks)
Ans:
/ignouassignmentfree
IGNOU ASSIGNMENT GURU Page-
(iii)
Applet vs Application program
Java Application:
A java application is a stand-alone program
...
It cannot access from web browser
...
It can access on local machine on which program is reside
...
Applet program can run from within a web browser or similar java enabled application
such as an applet viewer
Java applets are included in HTML pages using