Unlock the Power of Open Source! The " Linux New " SWAYAM Plus Course is live now and about 2,500 learners have already registered for it.

If you are a registered learner, the forum page is now active. Visit the page and get all your questions answered.

Instance fields - Gujarati

964 visits



Outline:

Instance ફિલ્ડસ * non-static ફિલ્ડસ વિષે પણ ખબર હોવી. * TestStudent class ખોલો જે આપણે બનાવી છે. * ડોટ ઓપરેટરનો ઉપયોગ કરીને roll_number અને name ફિલ્ડસ એક્સેસ કરો. *See the ઔત્પુત આઉટપુટ જુઓ. *ફિલ્ડ ઈનીશીલાઈઝ કરો અને આઉટ પુટ જુઓ. *ફિલ્ડસ ના મોડીફાઈ ને પ્રાઈવેટ માં બદલો. * એરરને ડિબગ કરો જે તમને મળે છે . * મોડીફાયરને પ્રોટેક્ટર માં બદલો. * ક્લાસના દરેક ઓબ્જેક્ટમાં વિશિષ્ટ વેલ્યુ હોય છે. *Student class ના બે ઓબ્જેક્ટ બનાવો.