You are viewing a single comment's thread. Return to all comments →
class MyBook:Book{ private int _price; private string _title; private string _author; public MyBook(string title,string author,int price):base(title,author){ _price=price; _title=title; _author=author; } public override void display(){ Console.WriteLine("Title: "+_title); Console.WriteLine("Author: "+_author); Console.WriteLine("Price: "+_price); } }
Day 13: Abstract Classes
You are viewing a single comment's thread. Return to all comments →
My C# sol: