Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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