menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Class secretType { public: static int count; static int z; secretType(); secretType(int a); void print(); static void incrementY(); private: int x; static int y; }; secretType::…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Class secretType { public: static int count; static int z; secretType(); secretType(int a); void print(); static void incrementY(); private: int x; static int y; }; secretType::…
asked
Dec 6, 2021
117k
views
0
votes
Class secretType { public: static int count; static int z; secretType(); secretType(int a); void print(); static void incrementY(); private: int x; static int y; }; secretType::secretType() { x = 1; } secretType::secretType(int a) { x = a; } void secretType::print() { cout << "x = " << x << ", y = " << y << "z = " << z << ", count = " << count << endl; } static void secretType::incrementY() { y++;}. Which of the following statements correctly creates the object mySecret of type secretType and sets the value of the member variable x to 9?a. secretType mySecret(9).b. mySecret = secretType(9).c. secretType = mySecret(9).d. secretType(9).mySecret.
Computers & Tech
high-school
Superdesk
asked
by
Superdesk
7.2k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
Answer:
a. secretType mySecret(9)
Step-by-step explanation:
Alon Weissfeld
answered
Dec 10, 2021
by
Alon Weissfeld
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Nov 22, 2020
155k
views
class secretType { public: static int count; static int z; secretType(); secretType(int a); void print(); static void incrementY(); private: int x; static int y; }; secretType::secretType() { x = 1; }
Sanjay Radadiya
asked
Nov 22, 2020
by
Sanjay Radadiya
8.0k
points
Computers & Tech
high-school
1
answer
3
votes
155k
views
asked
Oct 5, 2020
35.5k
views
public class Illustrate{private int x;private int y;public Illustrate(){x = 1;y = 2;}public Illustrate(int a){x = a;}public void print(){System.out.println("x = " + x + ", y = " + y);}public void incrementY(){y++;}}What
Markus Bach
asked
Oct 5, 2020
by
Markus Bach
8.1k
points
Computers & Tech
college
1
answer
5
votes
35.5k
views
asked
Nov 10, 2020
1.2k
views
public class Illustrate { private int x; private static int y; public static int count; public static int z; public Illustrate() { x = 1; } public Illustrate(int a) { x = a; } public void print() { System.
Worp
asked
Nov 10, 2020
by
Worp
7.9k
points
Computers & Tech
high-school
1
answer
3
votes
1.2k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty