Create a console application and take the input from console, make sure you do all the validation for the input. The console first asks which shape we want to calculate and then it will ask the inputs, make the app endless unless we type “exit”(case insensitive).
I was trying to do this practice exercise in C#. I created the classes for all the shapes(Circle, rectangle and triangle). And able to execute it in the programme class main function(Result: The console asks me the dimensions of each shape and calculate the result one by one). But I want to improvise my code using the abstract or interface. Please give me some hints so that I will proceed. I went throught basics of the polymorphism concepts and a kind of stuck while implementing these. Could you please help me what steps should I take to use those concepts.
Also please suggest few excercises to practice on the above concepts. Appreciated.
Instructor
gunjan Replied on 09/03/2019
These concepts are explained in the first seven modules of our selenium c# course. Please watch the videos once.