Computer Applications
Write a difference between class and an object.
Objects & Classes
24 Likes
Answer
A class is a blue print that represents a set of objects that share common characteristics and behaviour whereas an object is a specific instance of a class having a specific identity, specific characteristics and specific behaviour.
Answered By
14 Likes
Related Questions
Name the feature of class in Java depicted in the below picture.
- Displaying a set of animals
- Class in an object factory
- Animal is an object factory
- Object is a factory
Creating an object of a class is also referred to as:
- Initialisation
- Creation
- Formation
- Instantiation
Which keyword allocates objects in dynamic memory?
- this
- private
- new
- int
Which is a valid display() method declaration of a class Sample?
- Void Sample{int x}
- public void display()
- public void Show()
- Display{}