Computer Applications
Assertion (A): A car can be defined as a real world object that possesses some characteristics and behaviour.
Reason (R): Each real world object may contain some characteristics but not behaviour.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.
Objects & Classes
10 Likes
Answer
Assertion (A) is true and Reason (R) is false.
Reason — A car, as a real-world object, possesses both characteristics (e.g., colour, size, make) and behaviour (e.g., acceleration, braking). Real-world objects have both characteristics and the ability to perform actions or behaviours.
Answered By
5 Likes
Related Questions
Fill in the blanks:
The _________ keyword indicates an operator for dynamic allocation of an object.
Fill in the blanks:
Different objects of a class have common _________.
Your friend has tried to write a program using a class as shown below:
............... class Friend_list // Line 1 { void disp_name() { System.out.println("Amit Kumar"); } void disp_address() { System.out.println("Lane B: 3/1, Akash Ganga"); System.out.println("Mayur Vihar, New Delhi"); } public static void main() { Friend_list myself = new ...............(); // Line 2 ................disp_name(); // Line 3 myself................();// Line 4 } }Due to confusion, he could not complete the above program. He left blank spaces in some of the statements marked with Line 1, Line 2, Line 3 and Line 4 that are to be filled with appropriate keywords/objects.
Help your friend to complete his program by answering the following questions:
(a) Name the access specifier that should be filled in the statement marked with Line 1.
(b) Name the element to be filled in the statement marked with Line 2.
(c) What should be filled in the statement marked with Line 3?
(d) What function name should be filled in the statement marked with Line 4?
Define an Object with an example.