0

create class and its constructor taking one argument and as singing in to the "name " attribute then create and object of the class.

create class and its constructor. ____student: def____(self,name): self ___=name test=student("bob") can any one def object of class line tow. what is it???

12th Aug 2016, 11:36 AM
Mersha Alemayehu
Mersha Alemayehu - avatar
10 Antworten
+ 5
class Student: def __init__(self,name): self.name=name test=student("Bob")
21st Jan 2021, 2:24 PM
Syed Fahad Ahmed
Syed Fahad Ahmed - avatar
+ 1
class my_class { private: int my_data; public: my_class (int arg) { my_data = arg ; }
25th Mar 2022, 9:02 PM
Daniyal Khan
0
class Student: def __init__(self,name): self.name=name test=student("Bob")
22nd Aug 2016, 3:51 PM
Ahmed chiboub
Ahmed chiboub - avatar
0
Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. Then create an object of the class. class Student: def __init__ (self, name): self .name = name test = Student("Bob" )
28th Apr 2020, 9:29 AM
makhan Kumbhkar
makhan Kumbhkar - avatar
0
here i found the answer class Student: def __init__ (self, name): self .name = name test = Student("Bob"
15th Aug 2021, 1:52 PM
Sahana ca
Sahana ca - avatar
- 1
ill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. Then create an object of the class. class Student: def _init_(self, name): self.name= name test = Student("Bob")
26th Mar 2020, 6:50 AM
DINAOL ZEWUDE
DINAOL ZEWUDE - avatar
- 2
Class student: def__init__(self,name): Self.name=name test=student("bob")
14th Sep 2016, 10:32 AM
Ahmad Rofa'ey
Ahmad Rofa'ey - avatar
- 2
Class in it name :
19th Nov 2018, 5:03 AM
Nora Petzold
- 3
it's__ inti__ but don't be stupid like me you need think quick both sides needs two under score in equal. thanks anyways.
22nd Aug 2016, 4:02 PM
Mersha Alemayehu
Mersha Alemayehu - avatar
- 6
Fill in the blanks to declare the class my_class with its constructor. my_class { private: int my_data; public: (int arg) { my_data = ; } };
12th Jan 2019, 8:21 PM
N8IV WACRY