In this article we will learn overview of object oriented programming language . I have written this article completely focusing on beginners to make them understand about the OOPS concept.
Refer following article for depth explanation
Refer following article for depth explanation
Refer following article for depth explanation
Refer following article for depth explanation
Refer following article for depth explanation
Refer the following articles to learn more about OOPS concept.
Introduction
The programming in which data is logically represented in the form of a class and physically represented in the form an object is called as object oriented programming (OOP). OOP has the following important features.
Refer following article for depth explanation
Encapsulation
Refer following article for depth explanation
Refer following article for depth explanation
Class will not occupy any memory space. Hence to work with the data represented by the class you must create a variable for the class, which is called as an object. When an object is created by using the keyword new, then memory will be allocated for the class in heap memory area, which is called as an instance and its starting address will be stored in the object in stack memory area.
When an object is created without the keyword new, then memory will not be allocated in heap I.e. instance will not be created and object in the stack contains the value null. When an object contains null, then it is not possible to access the members of the class using that object.
Refer following article for depth explanation
Refer following article for depth explanation
Refer the following articles to learn more about OOPS concept.
Summary
I hope this article is useful for all readers,if you have any suggestion then contact me.
Post a Comment