What is a class?

Answer Posted / deepak saini

class is the collection of data and functions(methods)
which are used to collect that data.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the characters “r” and “w” mean when writing programs that will make use of files?

858


Describe how arrays can be passed to a user defined function

783


How can you find out how much memory is available?

618


What is variable declaration and definition in c?

503


What is the use of header files?

606






which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1419


Are pointers integer?

551


Can the “if” function be used in comparing strings?

597


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

713


What are the scope of static variables?

601


Explain how to reverse singly link list.

606


Are there constructors in c?

597


Can we use visual studio for c?

552


Why is not a pointer null after calling free?

598


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3691