Font size
WorksheetsElementary Concepts of Class and Object
Total questions: 13
Worksheet time: 32mins
(a) is a collection of objects that share common characteristics and behaviour.
The (a) of a class differs on various characteristics.
Bank tom = new Bank(5000.0);
Which is the class?
True or False: Class is created based on objects.
True
False
Which of the following is false with respect to a class?
It is an object factory
It is a template using which objects are created.
It is an instance of a class
It is a prototype of objects
These have identity , state and behaviour
object
class
function
data menbers
Define Object with an example.
Why is an Object called an 'Instance' of a class? Explain.
Write a statement to create an object 'Keyboard' of the class 'Computer'.
What is the significance of the keyword 'new' while creating an object?
Why is a class known as a composite data type?
What is the difference between a class and an object?
