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

26th Mar 2022, 5:09 PM
John Angelo Borja
8 ответов
+ 1
What did you not understand? 🙂 How to create a class? What a attribute is? What a class method is? Please be more specific.
26th Mar 2022, 5:16 PM
Stefanoo
Stefanoo - avatar
+ 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(); } }
27th Mar 2022, 11:21 AM
Krishna Kaushik
Krishna Kaushik - avatar
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.
26th Mar 2022, 5:16 PM
John Angelo Borja
0
I dont understand the method
26th Mar 2022, 5:18 PM
John Angelo Borja
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.
26th Mar 2022, 5:26 PM
Stefanoo
Stefanoo - avatar
0
I dont what to do in creating class method in determining the person sleep time
26th Mar 2022, 5:29 PM
John Angelo Borja
0
I think the best way to solve this problem is to ask the person, who give you this task, what he/she wants.
26th Mar 2022, 5:42 PM
Stefanoo
Stefanoo - avatar
0
Input user?
27th Mar 2022, 3:31 AM
John Angelo Borja