php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pointers are not accessible for static member funcion
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
which par of an object exhibit its state?

what problem may occure when we copy objects without using deep copy constructor?

Pointers are not accessible for static member funcion?
Reply
#2
You know very well that an object has some characteristics as well as exhibit behavior. State of an object infect is the current value of its data members (characteristics).

In case of deep copy constructors.......
when an object initialize with an existing object's state, then a memory space is allocated to the newly created object. In order to understand this concept easily, please have a look to the statements given below.

Shallow copy means like a "pass by value" e.g. a = b;

deep copy means like a "pass by reference" e.g. a = &b;

so, as you see in deep copy address is passing. In such a situation, problem is same memory location is pointed by different pointers due to address passing.

"this" pointer can't access the static data members because these are class members rather than object. "this" pointer is related with object rather than class, that's why, unable to access static data members.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dangling Pointers Explain in C++ Vuhelper 0 7,312 05-31-2012, 01:52 AM
Last Post: Vuhelper
  What is virtual inheritance,generic algorithmswith,member temples saneha 1 1,852 05-02-2011, 06:34 PM
Last Post: Vuhelper
  why we use member intilizer list.what is benefit of using it. saneha 1 3,406 05-02-2011, 06:29 PM
Last Post: Vuhelper
  why we use pointers or reference except using real name of var. what is buffer point saneha 1 9,928 05-02-2011, 06:24 PM
Last Post: Vuhelper
  why we use pointers or reference except using real name of var. what is buffer point saneha 1 5,274 05-02-2011, 06:05 PM
Last Post: Vuhelper
  What is the concept of having the data member of the same class within it? i.e. class saneha 1 2,265 05-02-2011, 05:54 PM
Last Post: Vuhelper
  why we have declared these two TreeNode pointers left saneha 1 2,205 05-02-2011, 05:15 PM
Last Post: Vuhelper
  difference between member functions,non member functions and friend functions ? saneha 1 5,184 05-02-2011, 04:57 PM
Last Post: Vuhelper
  A data member can be member of any class oject or any particular or there can be any saneha 1 2,220 05-02-2011, 04:50 PM
Last Post: Vuhelper
  what is Member function in c++ 2011 saneha 1 4,101 05-02-2011, 04:46 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support