Consider the following pseudo-code
Class brush
{
Private:
Integer size,colorcode;
Function getdata(){…..}//statment1
Public:
Integer name //statement-2
Function putdata(){….}
}
Function main
{
Brush b1,b2
Print b1.name//statement 3
B2.getdata()//statement 4
}
Choose the correct answer. A pseudo-code which is similar to that of C++ and self-explanatory. An
accessible member function or data member for an object are accessed by the statement
Objectname.functionname or objectname.datamembername respectively.
A. Statment1
B. Statment2
C. Statment3
D. Statment4
Answer: Option D