Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Articulos.Preguntas
- {
- public class UsoThisEnClase
- {
- private int campo;
- public UsoThisEnClase(int valor)
- {
- this.campo = valor;
- }
- public void Metodo(int a)
- {
- this.campo = a;
- this = new UsoThisEnClase(9);
- Console.WriteLine(campo.ToString());
- }
- public static void Main()
- {
- UsoThisEnClase ut = new UsoThisEnClase(3);
- ut.Metodo(4);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement