88 questions
Point class, which stores coordinates of points, andRectangle class that inherits Shape.#include <iostream>#include <vector>#include <string>using std::cout;using std::endl;class Poi...
Below is the code that was moved as it was in the book.----------------------------------------------------------------------------------------------------------class FruitSeller { int numOfApple; int...
I'm going to pre-define the function in the class and import it at any time to use it.The desired output value is m1: How is your relationship going? g1 ah?def romance(self, listener): print({}): How'...
In Java, I only put one public class in one fileI don't know what to do with Python.Some modules have only one classThere's a lot on some modules.What is the standard for making a module in Python?
Hong Gil-dong Computer 72Yi Sun-shin Electronics 50a heterogeneous computer 80When the data in the file is like this, The data structure is made of classes with names, departments, and creditsYou want...
a = class()b = class()c = class()..z = closs()In order to use the class, you must enter Instance = Class(). In this way, I didn't type in from a to z one by one, but I made a list and made a repeat se...
Hello, I'm a beginner who just started Python. I'm new to the idea of class, and I'm creating a class that's associated with square columns. I've almost finished everything else, but I don't know how ...
class cat: def __init__(self, name, age): self.__name = name self.__age = age def setname(self, name): self.__name = name def getname(self): return self.__name def setage(self, age): self.__age =...
class stat: def __init__(self, line): self.genre = line[1] self.member = line[2] self.album = line[3] self.like = int(line[6]) self.stat = [] self.total = 0 def like_sub(self.line): a = stat(se...
I need to find the maximum common factor and the minimum common multiple using the external class, but it can't be implemented.Please.#include <iostream>using namespace std;class Test {private: ...
« | - 7 - | » |
© 2024 OneMinuteCode. All rights reserved.