🔒 Closed Ano po use nito C# Language

Status
Not open for further replies.

DoubleTilt

Forum Veteran
Para saan po yung (object) kada matatapos sa writeline? salamat po
IMG_20221025_222807.jpg
 
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
  • 638
    Views
  • 3
    Participants
Last reply from:
DoubleTilt

Online now

Members online
979
Guests online
1,422
Total visitors
2,401

Forum statistics

Threads
2,276,208
Posts
28,968,320
Members
1,231,166
Latest member
williamfreede
Back
Top