+ 2
Which statement is true about classes? -blueprint -special functions
Hi, I got the following question in a challenge and I don't know the answer. Asked by Eres Gilloway: Which statement is true about classes? A) blueprint for creating objects B) none of these C) primitive data type D) special functions Primitive data types are int, byte and so on. A class has functions/methods. I never heard the word "blueprint". Could you please help me? Best regards Marvin
3 Respostas
+ 10
Class is the blueprint for creating objects. A class defines data members and object has values for data members. A class has member functions to operate on data members and each object can invoke member functions to operate on its values of data members.
+ 1
A class is an extensible program-code-template for creating objects, providing initial values and implementations of behavior.
A blueprint is a reproduction of a technical drawing, documenting an architecture or an engineering design.
They both have the same purpose of design/create template for the creation.
0
Awe