I am confused with such these topics.
What is diffrence between variable and refrence variable?
What is diffrence between object and instance?
What is refrence pointer?
Thanks alot.
Know the answer? Post it. Somebody with the same question will find it here.
Nilesh JadavRank #109 · 20.3K reputationPosted Apr 22, 2017, 12:37 AM EDT
Create an reference and an object
Student st = new Student();
The basic concept of OOP is this: Class >> Object >> Instance.
The class = the blue print. The Object is an actual thing that is built based on the 'blue print' (like the house). An instance is a virtual copy (but not a real copy) of the object.
For Reference pointers :
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/cp4_PointerReference.html
Hope that helps
Khaja MoizuddinRank #270 · 9.4K reputationPosted Apr 22, 2017, 1:42 AM EDT
Hassan Uddin MughalRank #2,508 · 560 reputationPosted Apr 22, 2017, 12:21 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts