class tag

88 questions


1 answers
161 views
0
Why can't the class be declared static?

Why can't the class be declared static?

2 years ago

1 answers
103 views
0
Which is better, class or structure in C++?

When do you write structure and when do you write class?

2 years ago

1 answers
141 views
0
Why not super.super.method() in Java?

When I was looking at a question, I thought that using the super.super.method() like the code below would solve it easily. @Overridepublic String toString() { return super.super.toString();}I don't kn...

2 years ago

2 answers
119 views
0
Is there a time when you use Interface instead of an abstract class? And is there the opposite?

It's a general OOP question. I want to make a general comparison between Interface and the basic use of abstraction classes. I want to know the difference between using the interface and using the abs...


1 answers
105 views
0
How do you use super() in Python?

In Perl and Java, super() was used to call the method of the parent class.package Foo;sub frotz { return Bamf;}package Bar;@ISA = qw(Foo);sub frotz { my $str = SUPER::frotz(); return uc($str);}I don't...


1 answers
135 views
0
What's the difference between a class and a module in Ruby

I originally used Java, and I'm just learning Ruby.It's a bit unfamiliar in Java, so I wonder exactly how modules and classes are different, and why they usually use modules, not classes.

2 years ago

3 answers
183 views
0
Why can only higher-class methods be used if class-type conversion is performed in Java?

The most incomprehensible part is that the parent class' method is only available when the type transformation is performed.Although it can be understood that the ultimate purpose of transforming the ...

2 years ago

1 answers
155 views
0
c++ Class Problem Questions

The problem embodies the functions, constructors, and destructors of ClassInfo In the main() function, enter (B511001, Kim Cheol-soo, 23), (B611002, Kim Young-hee, 26), and (B411003, Youngsoo Kim, 24)...

2 years ago

1 answers
105 views
0
An error appears that the python class object does not have a parameter.

Call on the edit page.Create a py fileI put a simple class function in the file Next, I imported it from the console window, but the error message object() takes no parameters appears. If you write m ...

2 years ago

1 answers
149 views
0
When creating class objects in Java, the types are different.

Hi, how are you?This is how you create a class objectYo MyObject object = new MyObject();I'm studying jsp code reviewIf there's MyObject at the front and MyObject at the back of the new, Your type? I ...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.