Вы находитесь на странице: 1из 4

K D Ambani Vidyamandir, Reliance Greens

Session 2019-2020
Informatics Practices WorkSheet-10
Topic: Basics Of Object Oriented Programming
Name: _______________________ Date: ____________
Class: ______ Sec: ________ Roll No.: __________
1. What is Computer Programming?
2. What is Procedural Programming?
3. What is Object Oriented paradigm?
4. Name some high level languages which support multi-programming paradigms
5. Name a high level languages which supports object oriented paradigm
6. Name some high level languages which support procedural paradigms
7. What is data encapsulation?
8. What is polymorphism?
9. What are major components of Object Oriented Programming?
10. What is a class?
11. What is an Object ?
12. Class and objects are related to each other in the same way as data type and variables. Give
examples to illustrate the above statement
13. Identify the data members ,data functions and access specifiers of the following class
public class Bicycle {
public int cadence;
public int gear;
public int speed;
public Bicycle(int startCadence, int startSpeed, int startGear) {
gear = startGear;
cadence = startCadence;
speed = startSpeed;
}
public void setCadence(int newValue) {
cadence = newValue;
}
public void setGear(int newValue) {
gear = newValue;
}
public void applyBrake(int decrement) {
speed -= decrement;
}
public void speedUp(int increment) {
speed += increment;
}
}

14. Write the default names of the object ,data members and Methods of the following classes

Class Objects Data Members Methods


(Properties)

JTextField • •

• •

• •

• •

1
K D Ambani Vidyamandir, Reliance Greens
Session 2019-2020
Informatics Practices WorkSheet-10
Topic: Basics Of Object Oriented Programming
Name: _______________________ Date: ____________
Class: ______ Sec: ________ Roll No.: __________
JLabel • •

• •

JTextArea •




JButton •


JCheckBox

JRadioButton

2
K D Ambani Vidyamandir, Reliance Greens
Session 2019-2020
Informatics Practices WorkSheet-10
Topic: Basics Of Object Oriented Programming
Name: _______________________ Date: ____________
Class: ______ Sec: ________ Roll No.: __________
JPasswordField 1 •

JComboBox •



JList • •


JTable • •


15. What is Operator OverLoading?
16. What is an Abstract class?When are they used ?
17. What is the importance of abstract classes in programming?
18. Does JOptionPane class have any data members?Give reasons for your answer.
19. What is inheritance?Write an example to illustrate the concept in Java

3
K D Ambani Vidyamandir, Reliance Greens
Session 2019-2020
Informatics Practices WorkSheet-10
Topic: Basics Of Object Oriented Programming
Name: _______________________ Date: ____________
Class: ______ Sec: ________ Roll No.: __________
20. Name the method of Math class which is an example of method overloading.
21. Name the method of String class which is an example of method overloading.
22. Write one advantage of inheritance?
23. Which keyword is used to inherit data members and methods of the base class and allows the
derived class to use these methods.
24. What are Access modifiers

Вам также может понравиться