Bsc Computer Science Cs Semester 5 2022 November Object Oriented Programming i Core Java 2019 Pattern
Bsc Computer Science Cs Semester 5 2022 November Object Oriented Programming i Core Java 2019 Pattern
[5902]-55
T.Y. B.Sc. (Computer Science)
CS - 355 : OBJECT ORIENTED PROGRAMMING USING
JAVA - I
(2019 Pattern) (Semester - V)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates:
1) All questions are compulsory.
2) Figures to the right indicate full marks.
P.T.O.
c) What is Frame? Give its any two methods.
c) Write a Java program to accept n number from user & store only perfect
numbers into array & display that array.
[5902]-55 2
Q5) Attempt any ONE of the following. (out of Two) [1×3=3]
b) Define a class Emp with a member Eid and display() method, inherit
EmP class into the Emp Name class, Emp Name class having a member
Ename & display ( ) method. Write a Java program to accept details of
employee [Eid, Ename] & display it. (Use super keyword).
[5902]-55 3