🔒 Closed Ano po use nito C# Language

Status
Not open for further replies.
An object is a container for data that you want to keep track of. In this case, the writeline is storing the data in an object so that it can be accessed later.
You got some part wrong. Yes, object "can" be called a container of data. But you should always think of it as an instance or an entity.
Also, in the given picture. Writeline is not "storing" the data in an object. It just basically cast's the variable i to object.
Check the method documentation here: You do not have permission to view the full content of this post. Log in or register now.

Salamat po! ang object po ba ay for char lang po ba?
No. Again, you should think of an object as an Entity. ie: Chair, pen, car, etc..
In C#, an object is an instance of a class. To understand this better, there's a common analogy to this to show the difference between the two.

A class is like a recipe. An object is a cake. From one recipe you can build many cakes. A recipe can only contain hints (be abstract) and leave room for your own creation of a recipe (implementing class) from which you can then build cakes (objects). So a class is not an object, it's the description of what objects of that class look like. Abstract classes contain methods and other information useful for the implementation of classes deriving from this abstract class.

Remember that C# is a object oriented programming language. That means the entirety of the language are built with objects and class.
Check the definition here: You do not have permission to view the full content of this post. Log in or register now.

Hope this helps.
 
You got some part wrong. Yes, object "can" be called a container of data. But you should always think of it as an instance or an entity.
Also, in the given picture. Writeline is not "storing" the data in an object. It just basically cast's the variable i to object.
Check the method documentation here: You do not have permission to view the full content of this post. Log in or register now.


No. Again, you should think of an object as an Entity. ie: Chair, pen, car, etc..
In C#, an object is an instance of a class. To understand this better, there's a common analogy to this to show the difference between the two.

A class is like a recipe. An object is a cake. From one recipe you can build many cakes. A recipe can only contain hints (be abstract) and leave room for your own creation of a recipe (implementing class) from which you can then build cakes (objects). So a class is not an object, it's the description of what objects of that class look like. Abstract classes contain methods and other information useful for the implementation of classes deriving from this abstract class.

Remember that C# is a object oriented programming language. That means the entirety of the language are built with objects and class.
Check the definition here: You do not have permission to view the full content of this post. Log in or register now.

Hope this helps.
Maraming salamat po, much appreciated po sa inyong paliwanag hehe salamat po ulit!
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 644
    Views
  • 3
    Participants
Last reply from:
DoubleTilt

Trending Topics

Online now

Members online
1,152
Guests online
1,544
Total visitors
2,696

Forum statistics

Threads
2,292,013
Posts
29,074,177
Members
1,210,144
Latest member
fpskuji
Back
Top