class tag

88 questions


1 answers
95 views
0
::before virtual addclass to the selected class to replace the background

When the image is scrolled. After id=mainoffset planted .aa::before { content:' '; display: block; background-color:#000; background-image:url('../img/main/01.jpg'); background-position: center; heig...

2 years ago

1 answers
117 views
0
How to read the fields in the class to find out what type

Can you examine the class of instances that a variable has in Java? I would like to read the fields one by one and check the type.

2 years ago

1 answers
115 views
0
Class template questions

template class Sample { private: struct NODE { DATA s_data; BYTE s_checksum; NODE() { s_checksum = CHECK_SUM; } };}The class template is defined as above, and I want to use another class in t...

2 years ago

2 answers
127 views
0
[Python] How to calculate the number of objects belonging to the class

It's exactly what the title is.class MyCounter: def __init__(self, value=0): self.counter = value pass def number_of_counters(): return ~~~~c1 = MyCounter()print(MyCounter.number_of_counters())c2 =...

2 years ago

1 answers
122 views
0
What is the difference between an interface and an abstract class?

What is the difference between an interface and an abstract class?


1 answers
126 views
0
Why does an object inherit?

Why do you inherit an object by writing (object) after its name when declaring a class?Is there a difference that some codes use that and others don't?class MyClass(object): # Class code


1 answers
141 views
0
Initialize static const string in class

Isn't it okay to initialize the static const member variable within the class?The error message says to initialize out of line.I don't want to use #define but what should I do Static data member of ty...

2 years ago

1 answers
111 views
0
I'm creating a class with Java that has a function similar to Python's Range, but I keep getting Cannot find symbol errors.

this.Error:cannot find symbol occurs on the line with the variable name. It's my first time using Java, so I don't understand it well, but isn't this able to access variables in objects like Python's ...


1 answers
135 views
0
I want to know how to use id, name, and class properties.

As the title says, I want to know how to use id, name, and class properties accurately.If you look at Mr. Yamoo's lecture, you often use the above attribute. Do I have to use the properties of the sto...


1 answers
134 views
0
Can abstract classes also have constructors?

Can abstract classes also have constructors? If you can, how do you use it and why?

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.