Latest Answer: Public Class MySample Public Shared Sub Main() Console.WriteLine("Hello World") End SubEnd ClassForm the above example, it is well understood ...
Latest Answer: desturctor is to destory objects.this is denoted by '~'.for eg:class alpha{public:read(int);disp();~alpha();};void alpha::read(){couti;}void alpha::~alpha(int i){i--;cout
Latest Answer: merits: we can able to access the other class members in our class if,we use friend keyword. we CAN access the members without inheriting the class.demerits: Maximum size of the memory will occupied by objects according ...
Latest Answer: The output of the above programme will be b=0.5 .7 is not stored as 0.7 ie it is stired to some value which is slightly less that 0.7 so the control will not work as expected [this is the only excception i guess for floating point nos] ...
Could any one explan me what happens in this program. main(){ int i=10; i=(++i)/(i++); printf("i=%d",i); }
Latest Answer: where do we use abstraction and encapsulation in core java. give some program examples.... ...
Can the function by which we get values for object strictly follow the data hiding rule in oops?if no,why?e.g void student ::getdata() { coutname; - - - - }void main(){ student s; s.getdata(); getch();}
Latest Answer: virtual destructor become meaningful when ur deleting an object of derived class associated with the pointer of base class. For ex. if A is base and B is derived and if we write expr. A *pa = new B and delete pa, we observe that destructor of ...
Can we call constructor of superclass directly without using super()method in subclass? if yes,explain,if no,why?
Latest Answer: With pointers you can do pointer arithmatic like increment or decrement the pointer.You cant do that with reference. ...
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top