What is an accessor?

Answer Posted / ritesh pal

An accessor is a class operation that does not modify the state of an object. The accessor functions need to be declared as const operations

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a static and a non-static inner class in java programming?

521


Why we do exception handling in java and how many types of exceptions are there?

543


When is finally block not called?

580


does java support pointers?

558


What is a flag and how does it work?

500






How to print nodes of a Binary tree?

1752


What is function and its uses?

558


What variables are stored in stack?

523


Does importing a package imports its sub-packages as well in java?

546


What is the difference between stringbuffer and stringbuilder class?

560


Why parameters should be passed by reference?

495


How many static init can you have?

671


Why is java so important?

643


What is Garbage Collection in Java

603


What’s the difference between unit, integration and functional testing?

610