Homework get set property setting (code)

// //1. Define a time class TIme that requires the following member variables (attributes) and methods:
// //1) The .deltaTIme property, which only has a get accessor, can return the time of each frame (1/60 seconds);
// //2). The TImeScale property has a get/set accessor that returns the current time scale (default is 1);
// //3). Customize a method to output the ratio of the current time. If it is greater than 1, the output is "fast forward". If it is less than 1, the output is "slow". If it is equal to 1 output is normal.
// // time of each frame; time ratio 1 is 1s = 60fps, 0.5 is 1s=60*0.5fps, 1.5 is 1s=60*1.5fps
// public class TIme
// {
// // Fields are written together, attributes are written together
// //Attribute: Limit a private field
// private float deltaTime;//Private field
// private float timeScale = 1f;//Private field
//
// //Attributes
// public float DeltaTime{
// get{
//deltaTime = 1f / 60;
// return deltaTime;
// }
// }
// //Attributes
// public float TimeScale{
// get{
// return timeScale;
// }
// set{
// timeScale = value;
// }
// }
// //method
// public void TimeStatu(){
// if (timeScale > 1) {
// Console.WriteLine ("fast forward");
// } else if (timeScale == 1) {
// Console.WriteLine ("normal");
// } else {
// Console.WriteLine ("slow release");
// }
// }
//
// }

Conductive Slip Ring

Conductive slip rings are one of the most popular types of electrical connectors. They consist of an insulating sleeve enclosing two metal contacts, with a small gap between them. When current is applied to the ring, it creates resistance between the contacts, which can be used to form a continuous circuit. They can be used in a wide range of applications, such as medical equipment, robotics, aerospace systems, and more. The construction of a conductive slip ring typically consists of two rotors (or rings), with each one containing a number of stationary contacts. When the rings rotate, the contacts move past each other and create an electrical connection.


In today's increasingly electronic world, the need for efficient and reliable power transmission is more important than ever. That's why more and more businesses are turning to slip rings as a means of transmitting power in a variety of applications. Slip rings are electrical connectors that allow current to flow continuously through a rotating assembly, making them ideal for use in devices that require uninterrupted power transmission, such as motors, generators, and wind turbines.

Conductive Slip Ring

Oubaibo is a leading manufacturer and supplier of conductive slip rings, slip ring power connectors, and other related products. With years of experience in the industry, our products are known for their quality and durability. We offer a wide range of products to meet the needs of our customers, including standard slip rings, high voltage slip rings, military-grade slip rings, and many others.



Conductive Slip Ring,Slip Ring Power Connector,Electrical Slip Ring Assembly,Slip Ring Design

Dongguan Oubaibo Technology Co., Ltd. , https://www.sliprob.com