Computer Science, asked by legendghost, 11 months ago

mention any two attributes required for class declaration also give one example???​

Answers

Answered by Varalakshmi2317
8

Answer:

class keyword open({) and close(}) flower brackets and semi colon( : )

Explanation:

syntax of class declarations is shown below:

class class_name

{

data member;

member functions( );

};


legendghost: are u sure
Varalakshmi2317: yes...what is your doubt
legendghost: what is close flower bracket
Varalakshmi2317: } it is the closing of flower bracket
legendghost: okay
legendghost: thank u
Varalakshmi2317: ur most welcome
Answered by tanya2456
7

Answer:

1) access specifier

2) class name

Explanation:

example 1) private , default , protected , public

2) class car , class employees etc.

.

.

.

hope it helps you

if so then please mark as brainly ans ☺️☺️

Similar questions