Skip to content

محدودیت های استاتیک در جاوا چیست؟ #263

Description

@MohsenNooriArdestani

همانطور که دیدید متد static کاربرد فراوانی دارد ولی در کنار کاربرد های خاص خود، دو محدودیت نیز دارد. محدودیت اول این است که این نوع متدها نمیتوانند به طور مستقیم متغیرها یا متدهایی که static نیستند را استفاده کنند.محدودیت دوم هم بدین صورت است که متد static در جاوا نمیتواند در خود از کلمه کلیدی this و super استفاده کند.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions