Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- class Person
- {
- public string personName;
- public Person(string personName)
- {
- this.personName = personName;
- }
- public Company company;
- public Car car;
- }
- class Company
- {
- public string companyName;
- public string companyDepartment;
- public decimal companySalary;
- public Company()
- {
- companyName = "";
- companyDepartment = "";
- companySalary = 0;
- }
- }
- class Car
- {
- public string carModel;
- public int carSpeed;
- public Car()
- {
- carModel = "";
- carSpeed = 0;
- }
- }
- class Pokemon
- {
- public string pokemonName;
- public string pokemonType;
- public Pokemon()
- {
- pokemonName = "";
- pokemonType = "";
- }
- }
- class Parents
- {
- public string parentName;
- public string parentBirth;
- public Parents()
- {
- parentName = "";
- parentBirth = "";
- }
- }
- class Children
- {
- public string childName;
- public string childBirth;
- public Children()
- {
- childName = "";
- childBirth = "";
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
Add Comment
Please, Sign In to add comment