Instance method thuộc về object và truy cập dữ liệu riêng của object qua $this. Gọi bằng $object->method(). Static method thuộc về chính class, không phải instance, và không thể truy cập $this. Khai báo với static function và gọi bằng ClassName::method().
Ví dụ: User::count() (static, đếm tổng user) vs $user->getName() (instance, lấy tên user cụ thể). Static method hữu ích cho utility functions, factory methods, hoặc theo dõi dữ liệu cấp class.
Instance methods belong to an object and access object-specific data via $this. Call with $object->method(). Static methods belong to the class itself, not instances, and cannot access $this. Define with static function and call with ClassName::method() or $object::method().
Example: User::count() (static, returns total users) vs $user->getName() (instance, returns specific user's name). Static methods are useful for utility functions, factory methods, or tracking class-level data.