Object Orinted programming
3 object
Object is instance of class of real world entity ,it is occupies memory Any entity that has state and behavior is known as an object
Object consist of :--
1.Identity
2.state/artibute
3.Behavior own
How to create objects :--------- 5 Ways
- By using new Keyword
- by using new instance
- by using clone()
- by using factory method
- by using delecatrive method
Object
# syntax
dot (.) operator is used to calling classs method or class Behavior in the given class.
class demo example
{
{
C++ is cooming soon
comming soon
CONTENT FIR TAB 4
i am eating
No comments:
Post a Comment