+ 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

29th Mar 2017, 1:26 PM
Marvin Hollmann
Marvin Hollmann - avatar
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.
29th Mar 2017, 2:01 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 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.
29th Mar 2017, 2:09 PM
Felipe Cruz
Felipe Cruz - avatar
0
Awe
15th Aug 2019, 2:47 PM
Mnqobi Sanele