What does it mean Calling a class ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does it mean Calling a class ??

Sometimes ppl say calling a class or calling a class inside another class. What does it mean ? What will happen if a call a class.

24th Apr 2017, 12:20 PM
Md Shahabuddin Hossain
Md Shahabuddin Hossain - avatar
4 Answers
+ 1
when you call a class you are actually asking the class to be run. This is the basis of OOP where code is only run when it is needed. cout is an example of calling a class. It is asking the program to run the class that is stored in the iostream that actually prints the text to the screen.
24th Apr 2017, 1:42 PM
Jason Hoffman
Jason Hoffman - avatar
+ 1
@Muhammed 😂😂 😂😂
25th Apr 2017, 1:21 PM
Zemichael
Zemichael - avatar
+ 1
Simply, it means starting to use that Class. The moment you start using a Class, it means you are calling the service of that Class.
25th Apr 2017, 1:26 PM
Zemichael
Zemichael - avatar
0
it is just like saying hey b#tch come here :) hope it helps
24th Apr 2017, 1:03 PM
Muhammad Mujtaba
Muhammad Mujtaba - avatar