473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how can we create dead objects

hello friends i am worried abt how to create the dead objects or how can we identify the dead objects in OO. Can u people please help me
May 16 '07 #1
5 1123
DeMan
1,806 1GB
Hopefully this thread (no pun intended) will help answer that question
May 16 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
You should not have dead objects.

If you member functions correctly protect the member data, then the object will always be valid. If, however, you have public data or otherwise break encapsulation, or refuse to use contstructors/destructors etc, then you are on your own.
May 16 '07 #3
AdrianH
1,251 Expert 1GB
You should not have dead objects.

If you member functions correctly protect the member data, then the object will always be valid. If, however, you have public data or otherwise break encapsulation, or refuse to use contstructors/destructors etc, then you are on your own.
Hey weakness, I think they call something like this a 'bug', whether or not they broke encapsulation. :D


Adrian
May 16 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
Yes, a bug.

Silly of me to not put it so clearly.

Encapsulation, however, does limit the amount of code where the bug could reside.
May 16 '07 #5
AdrianH
1,251 Expert 1GB
Yes, a bug.

Silly of me to not put it so clearly.

Encapsulation, however, does limit the amount of code where the bug could reside.
With clarity comes understanding. ;) :D :)


Adrian
May 16 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Amit D.Shinde | last post by:
I am adding a new picturebox control at runtime on the form How can i create click event handler for this control Amit Shinde
31
by: Yevgen Muntyan | last post by:
6.2.4 of standard says: "The value of a pointer becomes indeterminate when the object it points to reaches the end of its lifetime." Do I understand it right that value of pointer may or may...
23
by: gu | last post by:
hi to all! after two days debugging my code, i've come to the point that the problem was caused by an unexpected behaviour of python. or by lack of some information about the program, of course!...
40
by: Angus | last post by:
Hello I am writing a library which will write data to a user defined callback function. The function the user of my library will supply is: int (*callbackfunction)(const char*); In my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.