0

What is a class object?

Can we say that a class object is a class that has methods?

19th Aug 2021, 5:54 PM
‎أندريه‎
‎أندريه‎ - avatar
2 odpowiedzi
+ 2
get it in this way... A class is just some set of data all clamped together .. then we also have some functions which are used to modify that data (we call them methods)..(its like factory producing cars with some information like color , model and functionalities like speed , music system etc..) now you cant just drive car factory .. you need to produce a car from that ( its what object is) .. you give factory some information like you want blue Ferrari ... just complete the lessons you will get it .. you may look at ms docs if u need more information : https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/tutorials/classes
19th Aug 2021, 7:21 PM
Prashanth Kumar
Prashanth Kumar - avatar
0
Class Car; <-- blueprint Car speed_bob = new Car(); <-- object Object(new Car()) is what is done according to blueprint(Class Car) What you have in blueprint(Class Car), will have in object(new Car()).
23rd Aug 2021, 7:31 PM
generallegion
generallegion - avatar