CUET PG 2021 Computer PYQ — __________ is a template for entities that have common behaviour… | Mathem Solvex | Mathem Solvex
Tip:A–D to answerE for explanationV for videoS to reveal answer
CUET PG 2021 — Computer PYQ
CUET PG | Computer | 2021
__________ is a template for entities that have common behaviour
Choose the correct answer:
A.
class
(Correct Answer)
B.
object
C.
Data
D.
Polymorphism
Correct Answer:
class
Explanation
Solution
Iska sahi jawab hai: Class
Explanation
Software engineering aur Java/C++ jaise programming languages mein, hum "Class" ko ek blueprint ya template ki tarah dekhte hain. Iska mathematical aur logical representation niche diye gaye tarike se samjha ja sakta hai:
Template Logic: Agar C ek class hai, toh wo un sabhi objects O1,O2,…,On ka set represent karti hai jinmein common attributes (A) aur behaviors (B) hote hain.
Class(C)={Attributes(A),Behaviors(B)}
Relationship: Ek object hamesha apni class ka instance hota hai:
Object∈Class
Explanation
Solution
Iska sahi jawab hai: Class
Explanation
Software engineering aur Java/C++ jaise programming languages mein, hum "Class" ko ek blueprint ya template ki tarah dekhte hain. Iska mathematical aur logical representation niche diye gaye tarike se samjha ja sakta hai:
Template Logic: Agar C ek class hai, toh wo un sabhi objects O1,O2,…,On ka set represent karti hai jinmein common attributes (A) aur behaviors (B) hote hain.
Class(C)={Attributes(A),Behaviors(B)}
Relationship: Ek object hamesha apni class ka instance hota hai: