0
Create a class named Person with attributes( name). Create a class method that will determine what time person sleeps
Python help me please I don't understand
8 Respuestas
+ 1
What did you not understand? 🙂
How to create a class?
What a attribute is?
What a class method is?
Please be more specific.
+ 1
class Person
{
String Name;
Name = "ABC";
Person()
{
System.out.println("In Night Time" +Name +"Sleeps");
}
}
class A
{
public static void main(String[] args)
{
Person p1 = new Person();
}
}
0
Create a class named Person with attributes( name, age, gender, address). Create 3 objects. Create a class method that will determine what time a person sleeps.
0
I dont understand the method
0
Here you find information about class methods.
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2473/?ref=app
I don't know what the method should exactly do.
I would thing that the method takes an parameter time and prints it.
0
I dont what to do in creating class method in determining the person sleep time
0
I think the best way to solve this problem is to ask the person, who give you this task, what he/she wants.
0
Input user?