Init Method

Init Method

init method define init function class User(): name = "" pwd = "" def init(self): print("user") def sign_up(self): print("User Sign Up") init w

Read More

Class Definition

Class Definition

Object Oriented Programming (OOP) We need to write meaningful OOP codes, merely having classes doesn’t mean it’s oop. Defining a class Class: defined by class ClassName class Student()

Read More

Class and Object

Class and Object

Class and Object Class: a mapping between computer programs and the entities from real/thinking realm. It’s a blueprint that defines a set of attributes that will characterize any object that i

Read More

Class Method

Class Method

We can add binary numbers together, just like we can with base 10 numbers In the example below: a is in base 10 – because we have 10 possible digits, the highest value we can represent with one

Read More