C# - Properties

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 5

  • @TutorialsPoint_
    @TutorialsPoint_  Рік тому

    To Get Certification, Click Here: bitly.ws/P9Up
    Use coupon "UA-cam12" to get ‘’FLAT 12%’’ OFF at Checkout.

  • @navaneetht1686
    @navaneetht1686 4 роки тому +2

    Setting a value to 'private' declared property, here in example its 'IntrestRate' from different class is not possible. But value can still be set from other class by following below context
    public Accounts(float amt, float intr)
    {
    InitialAmount = amt;
    IntrestRate = intr;
    }
    class Program
    {
    static void Main(string[] args)
    {
    Accounts a1 = new Accounts(5000,9.9f);
    }
    having a constructor which can pass the value for private property from other class is still possible

  • @pratiksachaniya6975
    @pratiksachaniya6975 6 років тому +2

    Thank you sir for making on C#

  • @er.piyushpandeytrainerb.te4661
    @er.piyushpandeytrainerb.te4661 6 років тому

    Great

  • @isa.7m
    @isa.7m 6 років тому

    2nd..