Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp8
- {
- class Program
- {
- static void Main(string[] args)
- {
- var student = new Student();
- student.Walk();
- }
- }
- class Person
- {
- public void Walk()
- {
- Console.WriteLine("The person is walking");
- }
- }
- class Student : Person
- {
- public void Walk()
- {
- Console.WriteLine("The student is walking");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement